@aidarkezio/main-func
Version:
📦 It has my funcs
21 lines (18 loc) • 517 B
text/typescript
import { z } from 'zod'
export const DidYouMeanArgsSchema = z.object({
0: z.string(),
1: z.array(z.string()),
2: z.object({
threshold: z.number().min(0).max(1).optional(),
opts: z.object({
sensitive: z.boolean()
}).optional()
}).optional()
})
export const DidYouMeanSchema = z.object({
index: z.number(),
query: z.string(),
score: z.number().min(0).max(1)
})
export type DidYouMeanArgs = z.infer<typeof DidYouMeanArgsSchema>
export type DidYouMean = z.infer<typeof DidYouMeanSchema>