mirror of
https://github.com/langgenius/webapp-conversation.git
synced 2025-12-18 11:36:40 +08:00
chore: fix module delcare ts problem
This commit is contained in:
@ -4,7 +4,6 @@ import { ChatClient } from 'langgenius-client'
|
|||||||
import uuid from 'uuid'
|
import uuid from 'uuid'
|
||||||
|
|
||||||
const userPrefix = `user_${APP_ID}:`;
|
const userPrefix = `user_${APP_ID}:`;
|
||||||
// const uuid = require('uuid')
|
|
||||||
|
|
||||||
export const getInfo = (request: NextRequest) => {
|
export const getInfo = (request: NextRequest) => {
|
||||||
const sessionId = request.cookies.get('session_id')?.value || uuid.v4();
|
const sessionId = request.cookies.get('session_id')?.value || uuid.v4();
|
||||||
|
|||||||
2
app/global.d.ts
vendored
Normal file
2
app/global.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
declare module 'langgenius-client';
|
||||||
|
declare module 'uuid';
|
||||||
@ -31,6 +31,7 @@
|
|||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"next-env.d.ts",
|
"next-env.d.ts",
|
||||||
|
"global.d.ts",
|
||||||
"**/*.ts",
|
"**/*.ts",
|
||||||
"**/*.tsx",
|
"**/*.tsx",
|
||||||
".next/types/**/*.ts",
|
".next/types/**/*.ts",
|
||||||
@ -39,4 +40,4 @@
|
|||||||
"exclude": [
|
"exclude": [
|
||||||
"node_modules"
|
"node_modules"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user