You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
declare global {interfaceWindow{requestIdleCallback: (callback: ()=>void)=>number;cancelIdleCallback: (id: number)=>void;}}
打包依然报错
src/components/form/index.tsx(521,22): error TS2339: Property 'cancelIdleCallback' does not exist on type 'Window & typeof globalThis'.
src/components/form/index.tsx(524,55): error TS2339: Property 'requestIdleCallback' does not exist on type 'Window & typeof globalThis'.
The text was updated successfully, but these errors were encountered:
tsconfig
typings.d.ts
打包依然报错
src/components/form/index.tsx(521,22): error TS2339: Property 'cancelIdleCallback' does not exist on type 'Window & typeof globalThis'.
src/components/form/index.tsx(524,55): error TS2339: Property 'requestIdleCallback' does not exist on type 'Window & typeof globalThis'.
The text was updated successfully, but these errors were encountered: