mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +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?
10 lines
277 B
JavaScript
10 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
|