Skip to content

Commit ef0b7b2

Browse files
committed
feat: add Edge Runtime global types
1 parent 098537a commit ef0b7b2

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/edge-runtime.d.ts

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
interface ModelOptions {
2+
mean_pool?: boolean
3+
normalize?: boolean
4+
stream?: boolean
5+
timeout?: number
6+
}
7+
8+
interface Session {
9+
run(prompt: string, modelOptions?: ModelOptions): unknown
10+
}
11+
12+
declare var Session: {
13+
prototype: Session
14+
new (modelName: string, sessionOptions?: unknown): Session
15+
}
16+
17+
declare var Supabase: {
18+
readonly ai: {
19+
readonly Session: typeof Session
20+
}
21+
}

0 commit comments

Comments
 (0)