-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathts_errors.txt
More file actions
43 lines (43 loc) · 11.8 KB
/
ts_errors.txt
File metadata and controls
43 lines (43 loc) · 11.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
src/app/api/ai/chat/route.ts(125,58): error TS2769: No overload matches this call.
Overload 1 of 2, '(values: never, options?: { count?: "exact" | "planned" | "estimated" | undefined; } | undefined): PostgrestFilterBuilder<{ PostgrestVersion: string; }, never, never, null, "user_token_usage", never, "POST">', gave the following error.
Argument of type '{ user_id: string; input_tokens: number; output_tokens: number; model: string; }' is not assignable to parameter of type 'never'.
Overload 2 of 2, '(values: never[], options?: { count?: "exact" | "planned" | "estimated" | undefined; defaultToNull?: boolean | undefined; } | undefined): PostgrestFilterBuilder<{ PostgrestVersion: string; }, never, never, null, "user_token_usage", never, "POST">', gave the following error.
Object literal may only specify known properties, and 'user_id' does not exist in type 'never[]'.
src/app/dashboard/usage/page.tsx(29,21): error TS2322: Type '{ children: Element; currentRole: string; }' is not assignable to type 'IntrinsicAttributes & MainLayoutProps'.
Property 'currentRole' does not exist on type 'IntrinsicAttributes & MainLayoutProps'.
src/lib/cloud-pricing.ts(175,53): error TS2345: Argument of type 'number | undefined' is not assignable to parameter of type 'number'.
Type 'undefined' is not assignable to type 'number'.
src/lib/terminal/simulator.ts(69,5): error TS2322: Type '(args: string[]) => { success: false; error: string; output?: undefined; } | { success: true; output: string; error?: undefined; }' is not assignable to type '(args: string[], session: TerminalSession) => CommandResult'.
Type '{ success: false; error: string; output?: undefined; } | { success: true; output: string; error?: undefined; }' is not assignable to type 'CommandResult'.
Type '{ success: false; error: string; output?: undefined; }' is not assignable to type 'CommandResult'.
Types of property 'output' are incompatible.
Type 'undefined' is not assignable to type 'string'.
src/lib/terminal/simulator.ts(89,38): error TS2304: Cannot find name 'session'.
src/lib/terminal/simulator.ts(98,38): error TS2304: Cannot find name 'session'.
src/lib/terminal/simulator.ts(329,5): error TS2322: Type '(args: string[]) => { success: true; output: string; error?: undefined; } | { success: false; error: string; output?: undefined; }' is not assignable to type '(args: string[], session: TerminalSession) => CommandResult'.
Type '{ success: true; output: string; error?: undefined; } | { success: false; error: string; output?: undefined; }' is not assignable to type 'CommandResult'.
Type '{ success: false; error: string; output?: undefined; }' is not assignable to type 'CommandResult'.
Types of property 'output' are incompatible.
Type 'undefined' is not assignable to type 'string'.
src/lib/terminal/simulator.ts(465,26): error TS2345: Argument of type 'Record<string, (args: string[], session: TerminalSession) => CommandResult>' is not assignable to parameter of type 'Record<string, Record<string, (args: string[], session: TerminalSession) => CommandResult>>'.
'string' index signatures are incompatible.
Type '(args: string[], session: TerminalSession) => CommandResult' is not assignable to type 'Record<string, (args: string[], session: TerminalSession) => CommandResult>'.
Index signature for type 'string' is missing in type '(args: string[], session: TerminalSession) => CommandResult'.
src/lib/terminal/simulator.ts(468,26): error TS2345: Argument of type 'Record<string, (args: string[], session: TerminalSession) => CommandResult>' is not assignable to parameter of type 'Record<string, Record<string, (args: string[], session: TerminalSession) => CommandResult>>'.
'string' index signatures are incompatible.
Type '(args: string[], session: TerminalSession) => CommandResult' is not assignable to type 'Record<string, (args: string[], session: TerminalSession) => CommandResult>'.
Index signature for type 'string' is missing in type '(args: string[], session: TerminalSession) => CommandResult'.
src/lib/terminal/simulator.ts(471,26): error TS2345: Argument of type 'Record<string, (args: string[], session: TerminalSession) => CommandResult>' is not assignable to parameter of type 'Record<string, Record<string, (args: string[], session: TerminalSession) => CommandResult>>'.
'string' index signatures are incompatible.
Type '(args: string[], session: TerminalSession) => CommandResult' is not assignable to type 'Record<string, (args: string[], session: TerminalSession) => CommandResult>'.
Index signature for type 'string' is missing in type '(args: string[], session: TerminalSession) => CommandResult'.
src/lib/terminal/simulator.ts(473,22): error TS2345: Argument of type 'Record<string, (args: string[], session: TerminalSession) => CommandResult>' is not assignable to parameter of type 'Record<string, Record<string, (args: string[], session: TerminalSession) => CommandResult>>'.
'string' index signatures are incompatible.
Type '(args: string[], session: TerminalSession) => CommandResult' is not assignable to type 'Record<string, (args: string[], session: TerminalSession) => CommandResult>'.
Index signature for type 'string' is missing in type '(args: string[], session: TerminalSession) => CommandResult'.
src/lib/terminal/simulator.ts(479,22): error TS2349: This expression is not callable.
Type 'Record<string, (args: string[], session: TerminalSession) => CommandResult>' has no call signatures.
src/lib/terminal/simulator.ts(485,22): error TS2349: This expression is not callable.
Type 'Record<string, (args: string[], session: TerminalSession) => CommandResult>' has no call signatures.
src/lib/terminal/simulator.ts(490,10): error TS2454: Variable 'result' is used before being assigned.
src/lib/terminal/simulator.ts(491,9): error TS2741: Property 'output' is missing in type '{ success: false; error: string; }' but required in type 'CommandResult'.