mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
### What? Improve the node.js linter ### Why? It should not warn for _safe_ usage. x-ref: https://vercel.slack.com/archives/C04DUD7EB1B/p1724522593235339 ### How?
7 lines
277 B
JavaScript
7 lines
277 B
JavaScript
if (typeof clearImmediate === 'function') {
|
|
console.log(clearImmediate());
|
|
}
|
|
// We allow this.
|
|
const scheduleTimeoutA = typeof setImmediate === 'function' ? setImmediate : setTimeout;
|
|
const scheduleTimeoutB = typeof setImmediate !== 'function' ? setTimeout : setImmediate;
|