UNPKG

515 BTypeScriptView Raw
1export interface FieldMetadata {
2 type: String;
3 name: String;
4 writable: boolean;
5}
6export interface EntityMetadata {
7 hasGraphQL: boolean;
8 className: String;
9 fields: FieldMetadata[];
10}
11export interface EntityOptions {
12 name?: String;
13}
14export declare function GraphQL(options?: EntityOptions): (target: any) => void;
15export interface FieldOptions {
16 type?: String;
17 writable?: boolean;
18}
19export declare function GraphField(options?: FieldOptions): (target: any, key: string) => void;