diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..b6037c3 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,11 @@ +# Changelog + +All notable changes to this project made by Monade Team are documented in this file. For info refer to team@monade.io + +## [1.0.2] - 2022-08-16 +### Added +- Utility interface `DTO` + +## [1.0.1] - 2022-03-31 + +First release diff --git a/dist/types/interfaces/DTO.d.ts b/dist/types/interfaces/DTO.d.ts new file mode 100644 index 0000000..877a95e --- /dev/null +++ b/dist/types/interfaces/DTO.d.ts @@ -0,0 +1,2 @@ +import { Model } from "../Model"; +export declare type DTO = Partial>; diff --git a/dist/types/interfaces/index.d.ts b/dist/types/interfaces/index.d.ts index bb7867f..ae9f78a 100644 --- a/dist/types/interfaces/index.d.ts +++ b/dist/types/interfaces/index.d.ts @@ -1,2 +1,3 @@ export * from "./JSONData"; export * from "./JSONModel"; +export * from "./DTO"; diff --git a/package.json b/package.json index 3095c10..b8af572 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@monade/json-api-parser", - "version": "1.0.1", + "version": "1.0.2", "description": "A parser for JSON:API format that maps data to models using decorators, inspired by retrofit.", "main": "dist/index.cjs.js", "module": "dist/index.esm.js", diff --git a/src/interfaces/DTO.ts b/src/interfaces/DTO.ts new file mode 100644 index 0000000..8333f4f --- /dev/null +++ b/src/interfaces/DTO.ts @@ -0,0 +1,3 @@ +import { Model } from "../Model"; + +export type DTO = Partial>; diff --git a/src/interfaces/index.ts b/src/interfaces/index.ts index bb7867f..ae9f78a 100644 --- a/src/interfaces/index.ts +++ b/src/interfaces/index.ts @@ -1,2 +1,3 @@ export * from "./JSONData"; export * from "./JSONModel"; +export * from "./DTO";