atma-utils
Advanced tools
Comparing version 0.1.10 to 0.1.11
{ | ||
"name": "atma-utils", | ||
"description": "Helpers", | ||
"version": "0.1.10", | ||
"version": "0.1.11", | ||
"author": "Alexander Kit <alex.kit@atmajs.com>", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -19,7 +19,10 @@ declare namespace ClassBase { | ||
export class class_Dfr<T> extends Promise<T> { | ||
done (done: (result: T) => void | class_Dfr<any>): this | ||
type DfrRunner = (resolve: Function, reject?: Function) => void | class_Dfr | ||
export class class_Dfr { | ||
constructor (runner?: DfrRunner | any) | ||
then(onOk: (...args: any[]) => void | class_Dfr | PromiseLike<any>, onFail?: (...args: any[]) => void | class_Dfr | PromiseLike<any>) | ||
done (done: (...args: any[]) => void | class_Dfr): this | ||
fail (fail: (error: any | Error) => void): this | ||
reject(error: any | Error) | ||
resolve(result?: T): this | ||
reject(error: any | Error) : this | ||
resolve(...args: any[]): this | ||
always (always: Function): this | ||
@@ -31,6 +34,8 @@ | ||
isBusy (): boolean | ||
resolveDelegate (): (result: T | any) => void | any | ||
resolveDelegate (): (result: any) => void | any | ||
rejectDelegate (): (result: Error | any) => void | any | ||
static run<T> (fn: (resolve: Function, reject?: Function) => void, ctx?: any): class_Dfr<T> | ||
static run (fn: DfrRunner, ctx?: any): class_Dfr | ||
static resove (...args: any[]): class_Dfr | ||
static reject (...args: any[]): class_Dfr | ||
} | ||
@@ -37,0 +42,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
69305
2535