@formily/shared
Advanced tools
Comparing version 1.1.1-beta.0 to 1.1.1-beta.1
export declare const scheduler: { | ||
applyWithIdlePriority(callback: () => void): void; | ||
applyWithLowPriority(callback: () => void): void; | ||
applyWidthNormalPriority(callback: () => void): void; | ||
}; |
@@ -5,5 +5,11 @@ "use strict"; | ||
exports.scheduler = { | ||
applyWithIdlePriority: function (callback) { | ||
scheduler_1.unstable_scheduleCallback(scheduler_1.unstable_IdlePriority, callback); | ||
}, | ||
applyWithLowPriority: function (callback) { | ||
scheduler_1.unstable_scheduleCallback(scheduler_1.unstable_LowPriority, callback); | ||
}, | ||
applyWidthNormalPriority: function (callback) { | ||
scheduler_1.unstable_scheduleCallback(scheduler_1.unstable_NormalPriority, callback); | ||
} | ||
}; |
{ | ||
"name": "@formily/shared", | ||
"version": "1.1.1-beta.0", | ||
"version": "1.1.1-beta.1", | ||
"license": "MIT", | ||
@@ -21,3 +21,3 @@ "main": "lib", | ||
}, | ||
"gitHead": "9ca343fc1761cbabedcdaf080da12fedf1303307", | ||
"gitHead": "6f14fe66cbcce08d0cdbf1445b91716c74f41e46", | ||
"scripts": { | ||
@@ -24,0 +24,0 @@ "build": "tsc --declaration" |
/* eslint-disable */ | ||
import { unstable_scheduleCallback, unstable_LowPriority } from 'scheduler' | ||
import { | ||
unstable_scheduleCallback, | ||
unstable_LowPriority, | ||
unstable_IdlePriority, | ||
unstable_NormalPriority | ||
} from 'scheduler' | ||
export const scheduler = { | ||
applyWithIdlePriority(callback:()=>void){ | ||
unstable_scheduleCallback(unstable_IdlePriority,callback) | ||
}, | ||
applyWithLowPriority(callback: () => void) { | ||
unstable_scheduleCallback(unstable_LowPriority, callback) | ||
}, | ||
applyWidthNormalPriority(callback: () => void) { | ||
unstable_scheduleCallback(unstable_NormalPriority, callback) | ||
} | ||
} |
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
69847
2184