@types/scheduler
Advanced tools
Comparing version 0.16.8 to 0.23.0
{ | ||
"name": "@types/scheduler", | ||
"version": "0.16.8", | ||
"version": "0.23.0", | ||
"description": "TypeScript definitions for scheduler", | ||
@@ -28,4 +28,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/scheduler", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "9d7d043580552b4f12920f8562a456a2a9799eee67136f013daf1bf22f17fbb6", | ||
"typeScriptVersion": "4.5" | ||
"typesPublisherContentHash": "d0aa79298fef5ad2c8802ed3691de2c1849dfcc22f231f196d2053ae10087bed", | ||
"typeScriptVersion": "4.7" | ||
} |
@@ -9,5 +9,39 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/scheduler. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/scheduler/index.d.ts) | ||
````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, 22 Nov 2023 00:24:48 GMT | ||
* Last updated: Tue, 26 Mar 2024 08:07:57 GMT | ||
* Dependencies: none | ||
@@ -14,0 +48,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
50
5519
4
29