We are removing "skipLibCheck": true in our tsconfig.json as it hides errors that we would like to see. However we encountered this type error:
node_modules/next-plugin-preval/dist/index.d.ts:2:1 - error TS1046: Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier.
2 function preval<T>(value: T): Unwrap<T>;
~~~~~~~~
At the moment we're fixing this for ourselves by using patch-package.
We are removing
"skipLibCheck": true
in ourtsconfig.json
as it hides errors that we would like to see. However we encountered this type error:At the moment we're fixing this for ourselves by using
patch-package
.