Immediate.d.ts 900 B

1234567891011121314151617181920212223
  1. export declare class ImmediateDefinition {
  2. private root;
  3. setImmediate: (cb: () => void) => number;
  4. clearImmediate: (handle: number) => void;
  5. private identify(o);
  6. tasksByHandle: any;
  7. nextHandle: number;
  8. currentlyRunningATask: boolean;
  9. constructor(root: any);
  10. canUseProcessNextTick(): boolean;
  11. canUseMessageChannel(): boolean;
  12. canUseReadyStateChange(): boolean;
  13. canUsePostMessage(): boolean;
  14. partiallyApplied(handler: any, ...args: any[]): () => void;
  15. addFromSetImmediateArguments(args: any[]): number;
  16. createProcessNextTickSetImmediate(): () => any;
  17. createPostMessageSetImmediate(): () => any;
  18. runIfPresent(handle: any): void;
  19. createMessageChannelSetImmediate(): () => any;
  20. createReadyStateChangeSetImmediate(): () => any;
  21. createSetTimeoutSetImmediate(): () => any;
  22. }
  23. export declare const Immediate: ImmediateDefinition;