Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
webapp-conversation
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
webapp-conversation
Commits
032c2841
Commit
032c2841
authored
Apr 17, 2023
by
Joel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: fix module delcare ts problem
parent
87286f9d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
common.ts
app/api/utils/common.ts
+0
-1
global.d.ts
app/global.d.ts
+2
-0
tsconfig.json
tsconfig.json
+2
-1
No files found.
app/api/utils/common.ts
View file @
032c2841
...
...
@@ -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
();
...
...
app/global.d.ts
0 → 100644
View file @
032c2841
declare
module
'langgenius-client'
;
declare
module
'uuid'
;
tsconfig.json
View file @
032c2841
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment