Skip to content

Commit 9208113

Browse files
committed
[fix] 3 Type compatibility bugs
1 parent 8c165c8 commit 9208113

File tree

4 files changed

+33
-32
lines changed

4 files changed

+33
-32
lines changed

eslint.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import cspellPlugin from '@cspell/eslint-plugin';
22
import eslint from '@eslint/js';
3-
// @ts-expect-error eslint-plugin-next doesn't come with TypeScript definitions
43
import nextPlugin from '@next/eslint-plugin-next';
54
import stylistic from '@stylistic/eslint-plugin';
65
import eslintConfigPrettier from 'eslint-config-prettier';
@@ -53,6 +52,7 @@ export default tsEslint.config(
5352
warnOnUnsupportedTypeScriptVersion: false,
5453
},
5554
},
55+
// @ts-expect-error https://github.com/vercel/next.js/issues/81695
5656
rules: {
5757
// spellchecker
5858
'@cspell/spellchecker': [

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"mobx-restful-table": "^2.5.2",
4545
"next": "^15.4.5",
4646
"next-pwa": "~5.6.0",
47-
"next-ssr-middleware": "^1.0.1",
47+
"next-ssr-middleware": "^1.0.2",
4848
"next-with-less": "^3.0.1",
4949
"prismjs": "^1.30.0",
5050
"react": "^19.1.1",

pages/api/Lark/file/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ router.post('/', async context => {
3333
const name = parse(originalFilename || filepath).name + ext,
3434
type = MIME.getType(ext) || mimetype || 'application/octet-stream';
3535

36-
const blob = new File([buffer], name, { type });
36+
const blob = new File([buffer as Buffer<ArrayBuffer>], name, { type });
3737

3838
const file_token = await lark.uploadFile(
3939
blob,

pnpm-lock.yaml

Lines changed: 30 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)