UNPKG

openam-agent-custom

Version:

Customized ForgeRock AM Policy Agent for Node.js from Zoltan Tarcsay

13 lines (11 loc) 265 B
export class Deferred<R = any> { promise: Promise<R>; resolve: (result: R) => any; reject: (error: any) => any; constructor() { this.promise = new Promise((resolve, reject) => { this.resolve = resolve; this.reject = reject; }); } }