/// /// declare namespace FxOrmNS { type IdType = string | number type Arraible = T | T[] interface VoidCallback { (this: T_THIS, err?: FxOrmError.ExtendedError | null): T_RESULT } interface ExecutionCallback { (this: T_THIS, err?: string | FxOrmError.ExtendedError | FxOrmError.ExtendedError[] | null, result?: T): T_RESULT } interface GenericCallback { (this: T_THIS, err: FxOrmError.ExtendedError | null, result?: T): T_RESULT } interface NextCallback { (this: T_THIS, err?: ERR_T): T_RESULT } interface SuccessCallback { (result?: T): any } interface ValidatorCallback { (errors: Error[]): void } type Nilable = null | T interface ExposedResult { error: FxOrmError.ExtendedError, result?: T } interface SyncCallbackInputArags { callback?: FxOrmNS.ExecutionCallback, is_sync?: boolean } interface ValueWaitor { evt?: Class_Event, value: T } }