Fix types
This commit is contained in:
@@ -12,10 +12,23 @@
|
|||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"noUnusedLocals": true,
|
"noUnusedLocals": true,
|
||||||
"moduleResolution": "Bundler",
|
"moduleResolution": "bundler",
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"types": ["vitest/globals"],
|
"paths": {
|
||||||
|
// These imports within @livekit/components-core and
|
||||||
|
// @livekit/components-react are broken under the "bundler" module
|
||||||
|
// resolution mode, so we need to resolve them manually
|
||||||
|
"livekit-client/dist/src/room/Room": [
|
||||||
|
"./node_modules/livekit-client/dist/src/room/Room.d.ts"
|
||||||
|
],
|
||||||
|
"livekit-client/dist/src/room/participant/Participant": [
|
||||||
|
"./node_modules/livekit-client/dist/src/room/participant/Participant.d.ts"
|
||||||
|
],
|
||||||
|
"livekit-client/dist/src/proto/livekit_models_pb": [
|
||||||
|
"./node_modules/livekit-client/dist/src/proto/livekit_models_pb.d.ts"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
// TODO: Enable the following options later.
|
// TODO: Enable the following options later.
|
||||||
// "forceConsistentCasingInFileNames": true,
|
// "forceConsistentCasingInFileNames": true,
|
||||||
@@ -30,6 +43,7 @@
|
|||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"./node_modules/matrix-js-sdk/src/@types/*.d.ts",
|
"./node_modules/matrix-js-sdk/src/@types/*.d.ts",
|
||||||
|
"./node_modules/vitest/globals.d.ts",
|
||||||
"./src/**/*.ts",
|
"./src/**/*.ts",
|
||||||
"./src/**/*.tsx",
|
"./src/**/*.tsx",
|
||||||
"./test/**/*.ts",
|
"./test/**/*.ts",
|
||||||
|
|||||||
Reference in New Issue
Block a user