@or-sdk/library-types-v1
v7.0.2
Published
Request/response v1 legacy types for the OR SDK
Downloads
700
Readme
library types-v1
This package used for code generation of typescript types for the or-sdk and nest.js. See esbuild.browser.ts and esbuild.node.ts for details.
Usage
import {
CategoryItemResponseDTO, // used as type
CategoryItemResponse // used as class
} from '@or-sdk/library-types-v1';
CategoryItemResponse.parse(data); // will return CategoryItemResponseDTO or error if data is not valid
const item: CategoryItemResponseDTO = {};