@xmobitea/gn-server
Version:
GearN Server by XmobiTea (Pro)
20 lines (19 loc) • 408 B
TypeScript
export type AbstractConstructor<T> = Function & {
prototype: T;
};
export declare enum FieldDataType {
Boolean = 0,
Number = 1,
String = 2,
Array = 3,
Object = 4
}
export interface GNObjectFieldMetadata {
name: string;
fieldType: FieldDataType;
cls: new (...args: any[]) => any;
}
export interface GNObjectMetadata {
id: string;
fields: GNObjectFieldMetadata[];
}