first commit

This commit is contained in:
编码猿
2024-09-27 01:15:47 +08:00
commit 8be1fcce6b
155 changed files with 9435 additions and 0 deletions

10
json-mapper-class/dist/decorators.d.ts vendored Normal file
View File

@@ -0,0 +1,10 @@
import { StoreItemType } from './typing';
export declare function serialize(serializer: StoreItemType['serializer'], disallowIgnore?: boolean): (target: any, propertyKey: string) => void;
export declare function deserialize(deserializer: StoreItemType['deserializer'], disallowIgnore?: boolean): (target: any, propertyKey: string) => void;
export declare function beforeDeserialize(beforeDeserializer: StoreItemType['beforeDeserializer'], disallowIgnore?: boolean): (target: any, propertyKey: string) => void;
export declare function afterSerialize(afterSerializer: StoreItemType['afterSerializer'], disallowIgnore?: boolean): (target: any, propertyKey: string) => void;
export declare function serializeTarget(): (target: any, propertyKey: string) => void;
export declare function property(originalKey?: string, targetClass?: StoreItemType['targetClass'], isOptional?: boolean): (target: any, propertyKey: string) => void;
export declare function typed(targetClass: StoreItemType['targetClass']): (target: any, propertyKey: string) => void;
export declare function optional(): (target: any, propertyKey: string) => void;
export declare function defaultVal(value: any): (target: any, propertyKey: string) => void;