@types/scheduler
TypeScript definitions for scheduler
Last updated a year ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @types/scheduler 
SYNC missed versions from official npm registry.

Installation

npm install --save @types/scheduler

Summary

This package contains type definitions for scheduler (https://react.dev/).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/scheduler.

index.d.ts

// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
export type FrameCallbackType = (didTimeout: boolean) => FrameCallbackType | void;
export interface CallbackNode {
    callback: FrameCallbackType;
    priorityLevel: number;
    expirationTime: number;
    next: CallbackNode | null;
    prev: CallbackNode | null;
}

export const unstable_ImmediatePriority = 1;
export const unstable_UserBlockingPriority = 2;
export const unstable_NormalPriority = 3;
export const unstable_IdlePriority = 5;
export const unstable_LowPriority = 4;
export function unstable_runWithPriority<T>(priorityLevel: number, eventHandler: () => T): T;
export function unstable_scheduleCallback(
    priorityLevel: number,
    callback: FrameCallbackType,
    options?: { delay?: number | undefined; timeout?: number | undefined },
): CallbackNode;
export function unstable_next<T>(eventHandler: () => T): T;
export function unstable_cancelCallback(callbackNode: CallbackNode): void;
export function unstable_wrapCallback(callback: FrameCallbackType): () => FrameCallbackType;
export function unstable_getCurrentPriorityLevel(): number;
export function unstable_shouldYield(): boolean;
export function unstable_continueExecution(): void;
export function unstable_pauseExecution(): void;
export function unstable_getFirstCallbackNode(): CallbackNode | null;
export function unstable_now(): number;

Additional Details

  • Last updated: Wed, 02 Apr 2025 07:33:00 GMT
  • Dependencies: none

Credits

These definitions were written by Nathan Bierema, and Sebastian Silbermann.

Current Tags

  • 0.26.0                                ...           latest (a year ago)
  • 0.12.0                                ...           ts2.1 (7 years ago)
  • 0.12.0                                ...           ts2.2 (7 years ago)
  • 0.12.0                                ...           ts2.3 (7 years ago)
  • 0.12.0                                ...           ts2.4 (7 years ago)
  • 0.12.0                                ...           ts2.5 (7 years ago)
  • 0.12.0                                ...           ts2.6 (7 years ago)
  • 0.12.0                                ...           ts2.7 (7 years ago)
  • 0.16.1                                ...           ts2.8 (6 years ago)
  • 0.16.1                                ...           ts2.9 (6 years ago)
  • 0.16.1                                ...           ts3.0 (6 years ago)
  • 0.16.1                                ...           ts3.1 (6 years ago)
  • 0.16.1                                ...           ts3.2 (6 years ago)
  • 0.16.1                                ...           ts3.3 (6 years ago)
  • 0.16.1                                ...           ts3.4 (6 years ago)
  • 0.16.1                                ...           ts3.5 (6 years ago)
  • 0.16.2                                ...           ts3.6 (5 years ago)
  • 0.16.2                                ...           ts3.7 (5 years ago)
  • 0.16.2                                ...           ts3.8 (5 years ago)
  • 0.16.2                                ...           ts3.9 (5 years ago)
  • 0.16.2                                ...           ts4.0 (5 years ago)
  • 0.16.2                                ...           ts4.1 (5 years ago)
  • 0.16.2                                ...           ts4.2 (5 years ago)
  • 0.16.3                                ...           ts4.3 (3 years ago)
  • 0.16.3                                ...           ts4.4 (3 years ago)
  • 0.16.8                                ...           ts4.5 (2 years ago)
  • 0.16.8                                ...           ts4.6 (2 years ago)
  • 0.23.0                                ...           ts4.7 (2 years ago)
  • 0.23.0                                ...           ts4.8 (2 years ago)
  • 0.23.0                                ...           ts4.9 (2 years ago)
  • 0.23.0                                ...           ts5.0 (2 years ago)
  • 0.26.0                                ...           ts5.1 (a year ago)
  • 0.26.0                                ...           ts5.2 (a year ago)
  • 0.26.0                                ...           ts5.3 (a year ago)
  • 0.26.0                                ...           ts5.4 (a year ago)
  • 0.26.0                                ...           ts5.5 (a year ago)
  • 0.26.0                                ...           ts5.6 (a year ago)
  • 0.26.0                                ...           ts5.7 (a year ago)
  • 0.26.0                                ...           ts5.8 (a year ago)
  • 0.26.0                                ...           ts5.9 (a year ago)
  • 0.26.0                                ...           ts6.0 (a year ago)

14 Versions

  • 0.26.0                                ...           a year ago
  • 0.23.0                                ...           2 years ago
  • 0.16.8                                ...           2 years ago
  • 0.16.7                                ...           2 years ago
  • 0.16.6                                ...           2 years ago
  • 0.16.5                                ...           2 years ago
  • 0.16.4                                ...           3 years ago
  • 0.16.3                                ...           3 years ago
  • 0.16.2                                ...           5 years ago
  • 0.16.1                                ...           6 years ago
  • 0.16.0                                ...           7 years ago
  • 0.12.1                                ...           7 years ago
  • 0.12.0                                ...           7 years ago
  • 0.10.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 2
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (2)

Copyright 2013 - present © cnpmjs.org | Home |