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
Declaration files are generated automatically and override the root declaration file index.d.ts which breaks TypeScript support.
Generated file in node_modules:
Result:
Alternative solution
The way around this is creating a file overrides.d.ts in src (or within your root directory), copy-pasting the content of index.d.ts within it but replacing the part declare module 'wikijs' { with
declare global {
module "wikijs"{/* content of index.d.ts within "declare module 'wikijs'" { *//** * Default Options * * @interface Options */interfaceOptions/* etc */}}
Which solves it:
The text was updated successfully, but these errors were encountered:
Declaration files are generated automatically and override the root declaration file
index.d.ts
which breaks TypeScript support.Generated file in
node_modules
:Result:
Alternative solution
The way around this is creating a file
overrides.d.ts
insrc
(or within your root directory), copy-pasting the content ofindex.d.ts
within it but replacing the partdeclare module 'wikijs' {
withWhich solves it:
The text was updated successfully, but these errors were encountered: