UNPKG

@yamamotok/dataobject

Version:

Decorator based JSON serializer and deserializer.

20 lines (19 loc) 1.12 kB
import { JsDateTransformer } from './bundle/JsDateTransformer'; import { Decorator } from './Decorator'; import { Factory } from './Factory'; import { ToPlain } from './ToPlain'; export declare const property: typeof Decorator.property; export declare const required: typeof Decorator.required; export declare const context: typeof Decorator.context; export declare const spread: typeof Decorator.spread; export declare const validator: typeof Decorator.validator; export declare const validatorS: typeof Decorator.validatorS; export declare const createFactory: typeof Factory.createFactory; export declare const createToPlain: typeof ToPlain.createToPlain; export { DataObjectError } from './DataObjectError'; export { ValidationError } from './ValidationError'; export declare const jsDateTransformer: JsDateTransformer; export type { ClassWithFactory, ClassWithToPlain, DataObjectClass } from './types'; export type { ValidatorOptions, ValidatorFunction, ValidatorFunctionS } from './Validator'; export { hasFactory } from './utils/hasFactory'; export { hasToPlain } from './utils/hasToPlain';