-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
36 lines (30 loc) · 961 Bytes
/
Copy pathtypes.ts
File metadata and controls
36 lines (30 loc) · 961 Bytes
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
import type { Infer } from 'convex/values'
import type {
stacksValidator,
suggestionsValidator,
userSettingsValidator
} from '~/convex/schema'
import type { Id } from '~/convex/_generated/dataModel'
export type Stack = Omit<Infer<typeof stacksValidator>, 'userId'>
export type MostUsedStatsData = [
string,
{ count: number; percent: number; icon: string }
][]
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
export type UnwrapConvex<T extends (...args: any[]) => Promise<any>> = Awaited<
ReturnType<T>
>
export type Suggestion = Infer<typeof suggestionsValidator>
export type SuggestionWithoutUser = Omit<Suggestion, 'userId'>
export type UserSettings = Infer<typeof userSettingsValidator>
export type UserSettingsWithoutUser = Omit<UserSettings, 'userId'>
export type SuggestionTypeCount = {
category: number
block: number
tech: number
points: number
}
export type BuilderUser = {
userId: Id<'users'>
count: number
}