Skip to content
This repository was archived by the owner on Jun 2, 2023. It is now read-only.

Commit 7cd608d

Browse files
committed
feat: export defineConfig
1 parent 040b2d5 commit 7cd608d

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ lib-cov
99
logs
1010
node_modules
1111
temp
12-
cookies.json
12+
cookie.json

edgegpt.config.ts

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { defineConfig } from ".";
2+
3+
export default defineConfig({
4+
cookies: "cookie.json",
5+
});

src/index.ts

+4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1+
import { EdgeGPTConfig } from "./types";
2+
13
export * from "./ChatBot";
24
export * from "./ChatHub";
35
export * from "./config";
46
export * from "./conversation";
57
export * from "./request";
68
export * from "./types";
79
export * from "./utils";
10+
11+
export const defineConfig = (config: Partial<EdgeGPTConfig>) => config;

0 commit comments

Comments
 (0)