-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Using Typescript v5.2.2
The instructions currently state that you have to update you tsconfig file as follows:
{
"compilerOptions": {
+ "typeRoots": ["node_modules/@digidem/types/vendor", "node_modules/@types"]
}
}however, this seems to work:
{
"compilerOptions": {
+ "paths": {
+ "*": ["./node_modules/@digidem/types/vendor/*/index.d.ts"]
+ }
}
}Example tsconfig I'm using:
{
"compilerOptions": {
"target": "es2022",
"lib": [
"es2023"
],
"module": "nodenext",
"moduleResolution": "nodenext",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"allowJs": true,
"checkJs": true,
"noEmit": true,
"declaration": false,
"typeRoots": [
"node_modules/@types",
"node_modules/@digidem/types/vendor",
]
},
"include": [
"src/**/*",
"tests/**/*"
],
"exclude": [
"node_modules",
]
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels