Skip to content

Commit

Permalink
fixed tsconfig to type pass worklet
Browse files Browse the repository at this point in the history
  • Loading branch information
jptaylor committed Jun 19, 2024
1 parent 4d69988 commit 5f4702b
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 15 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"tailwind-merge": "^2.3.0"
},
"devDependencies": {
"@types/node": "^20.14.2",
"@types/audioworklet": "^0.0.55",
"@types/node": "^20.14.5",
"@types/react": "^18.2.66",
"@types/react-dom": "^18.2.22",
"@types/react-sparklines": "^1.7.5",
Expand Down
2 changes: 1 addition & 1 deletion src/vad/frame-processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Some of this code, together with the default options found in index.ts,
were taken (or took inspiration) from https://github.com/snakers4/silero-vad
*/

import { SpeechProbabilities } from "./models";
import { Message } from "./messages";
import { SpeechProbabilities } from "./models";

export const RECOMMENDED_FRAME_SAMPLES = [512, 1024, 1536];

Expand Down
4 changes: 2 additions & 2 deletions src/vad/node.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { VADOptions } from "./vad";
import { FrameProcessor } from "./frame-processor";
import { Silero, SpeechProbabilities } from "./models";
import { Message } from "./messages";
import { Silero, SpeechProbabilities } from "./models";
import { VADOptions } from "./vad";

export interface AudioVADNodeInterface {
audioContext: AudioContext;
Expand Down
6 changes: 3 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"compilerOptions": {
"target": "ES2020",
"useDefineForClassFields": true,
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"target": "ESNext",
"module": "ESNext",
"useDefineForClassFields": true,
"lib": ["ESNext", "DOM", "DOM.Iterable"],
"skipLibCheck": true,

"baseUrl": ".",
Expand Down
14 changes: 6 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1159,6 +1159,11 @@
"@tufjs/canonical-json" "2.0.0"
minimatch "^9.0.4"

"@types/audioworklet@^0.0.55":
version "0.0.55"
resolved "https://registry.yarnpkg.com/@types/audioworklet/-/audioworklet-0.0.55.tgz#9be9331bd8ece3e072b2393719a2200893363c65"
integrity sha512-tL7tMCKPjsAVt2ywgoRhkBIOKHKSf0e9K3+3PTRp1tpUiHyrqA0EOdVeVg4j4bul6zHed3T4hRt0K1E7X5hXQQ==

"@types/babel__core@^7.20.5":
version "7.20.5"
resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.20.5.tgz#3df15f27ba85319caa07ba08d0721889bb39c017"
Expand Down Expand Up @@ -1197,20 +1202,13 @@
resolved "https://registry.yarnpkg.com/@types/estree/-/estree-1.0.5.tgz#a6ce3e556e00fd9895dd872dd172ad0d4bd687f4"
integrity sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==

"@types/node@>=13.7.0":
"@types/node@>=13.7.0", "@types/node@^20.14.5":
version "20.14.5"
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.14.5.tgz#fe35e3022ebe58b8f201580eb24e1fcfc0f2487d"
integrity sha512-aoRR+fJkZT2l0aGOJhuA8frnCSoNX6W7U2mpNq63+BxBIj5BQFt8rHy627kijCmm63ijdSdwvGgpUsU6MBsZZA==
dependencies:
undici-types "~5.26.4"

"@types/node@^20.14.2":
version "20.14.2"
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.14.2.tgz#a5f4d2bcb4b6a87bffcaa717718c5a0f208f4a18"
integrity sha512-xyu6WAMVwv6AKFLB+e/7ySZVr/0zLCzOa7rSpq6jNwpqOrUbcACDWC+53d4n2QHOnDou0fbIsg8wZu/sxrnI4Q==
dependencies:
undici-types "~5.26.4"

"@types/prop-types@*":
version "15.7.12"
resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.12.tgz#12bb1e2be27293c1406acb6af1c3f3a1481d98c6"
Expand Down

0 comments on commit 5f4702b

Please sign in to comment.