Add typescript and tsconfig for type checking

This commit is contained in:
Jared Miller 2026-02-23 17:58:58 -05:00
parent aa9412dc61
commit 820bb6e395
Signed by: shmup
GPG key ID: 22B5C6D66A38B06C
3 changed files with 17 additions and 13 deletions

View file

@ -6,10 +6,7 @@
"name": "slaywithfriends",
"devDependencies": {
"@biomejs/biome": "^2.4.4",
"@types/bun": "latest",
},
"peerDependencies": {
"typescript": "^5",
"typescript": "^5.9.3",
},
},
},
@ -32,14 +29,6 @@
"@biomejs/cli-win32-x64": ["@biomejs/cli-win32-x64@2.4.4", "", { "os": "win32", "cpu": "x64" }, "sha512-gnOHKVPFAAPrpoPt2t+Q6FZ7RPry/FDV3GcpU53P3PtLNnQjBmKyN2Vh/JtqXet+H4pme8CC76rScwdjDcT1/A=="],
"@types/bun": ["@types/bun@1.3.9", "", { "dependencies": { "bun-types": "1.3.9" } }, "sha512-KQ571yULOdWJiMH+RIWIOZ7B2RXQGpL1YQrBtLIV3FqDcCu6FsbFUBwhdKUlCKUpS3PJDsHlJ1QKlpxoVR+xtw=="],
"@types/node": ["@types/node@25.3.0", "", { "dependencies": { "undici-types": "~7.18.0" } }, "sha512-4K3bqJpXpqfg2XKGK9bpDTc6xO/xoUP/RBWS7AtRMug6zZFaRekiLzjVtAoZMquxoAbzBvy5nxQ7veS5eYzf8A=="],
"bun-types": ["bun-types@1.3.9", "", { "dependencies": { "@types/node": "*" } }, "sha512-+UBWWOakIP4Tswh0Bt0QD0alpTY8cb5hvgiYeWCMet9YukHbzuruIEeXC2D7nMJPB12kbh8C7XJykSexEqGKJg=="],
"typescript": ["typescript@5.9.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="],
"undici-types": ["undici-types@7.18.2", "", {}, "sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w=="],
}
}

View file

@ -6,6 +6,7 @@
"dev": "bun run src/serve.js"
},
"devDependencies": {
"@biomejs/biome": "^2.4.4"
"@biomejs/biome": "^2.4.4",
"typescript": "^5.9.3"
}
}

14
tsconfig.json Normal file
View file

@ -0,0 +1,14 @@
{
"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "bundler",
"types": ["bun-types"],
"noEmit": true,
"allowJs": true,
"checkJs": false,
"strict": false
},
"include": ["src/**/*"],
"exclude": ["node_modules"]
}