Commit 032c2841 authored by Joel's avatar Joel

chore: fix module delcare ts problem

parent 87286f9d
......@@ -4,7 +4,6 @@ import { ChatClient } from 'langgenius-client'
import uuid from 'uuid'
const userPrefix = `user_${APP_ID}:`;
// const uuid = require('uuid')
export const getInfo = (request: NextRequest) => {
const sessionId = request.cookies.get('session_id')?.value || uuid.v4();
......
declare module 'langgenius-client';
declare module 'uuid';
......@@ -31,6 +31,7 @@
},
"include": [
"next-env.d.ts",
"global.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
......@@ -39,4 +40,4 @@
"exclude": [
"node_modules"
]
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment