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
I am experiencing a TypeScript type conflict when using the @types/css-font-loading-module package in conjunction with TypeScript 5.0. The conflict arises from the display property in the FontFace interface, which is defined with different types in lib.dom.d.ts and @types/css-font-loading-module.
Expected Behavior
The TypeScript compiler should not throw any type errors related to the display property in the FontFace interface.
Actual Behavior
node_modules/@types/css-font-loading-module/index.d.ts:22:9 - error TS2717: Subsequent property declarations must have the same type. Property 'display' must be of type 'FontDisplay', but here has type 'string'.
22 display?: string | undefined; ~~~~~~~
node_modules/typescript/lib/lib.dom.d.ts:515:5 515 display?: FontDisplay; ~~~~~~~ 'display' was also declared here.
node_modules/@types/css-font-loading-module/index.d.ts:42:9 - error TS2717: Subsequent property declarations must have the same type. Property 'display' must be of type 'FontDisplay', but here has type 'string'.
42 display: string; ~~~~~~~
node_modules/typescript/lib/lib.dom.d.ts:5537:5 5537 display: FontDisplay; ~~~~~~~ 'display' was also declared here.
The text was updated successfully, but these errors were encountered:
I am experiencing a TypeScript type conflict when using the @types/css-font-loading-module package in conjunction with TypeScript 5.0. The conflict arises from the display property in the FontFace interface, which is defined with different types in lib.dom.d.ts and @types/css-font-loading-module.
Expected Behavior
The TypeScript compiler should not throw any type errors related to the display property in the FontFace interface.
Actual Behavior
node_modules/@types/css-font-loading-module/index.d.ts:22:9 - error TS2717: Subsequent property declarations must have the same type. Property 'display' must be of type 'FontDisplay', but here has type 'string'.
22 display?: string | undefined; ~~~~~~~
node_modules/typescript/lib/lib.dom.d.ts:515:5 515 display?: FontDisplay; ~~~~~~~ 'display' was also declared here.
node_modules/@types/css-font-loading-module/index.d.ts:42:9 - error TS2717: Subsequent property declarations must have the same type. Property 'display' must be of type 'FontDisplay', but here has type 'string'.
42 display: string; ~~~~~~~
node_modules/typescript/lib/lib.dom.d.ts:5537:5 5537 display: FontDisplay; ~~~~~~~ 'display' was also declared here.
The text was updated successfully, but these errors were encountered: