Skip to content

Commit

Permalink
fixup! feat: added strong typed orama schema
Browse files Browse the repository at this point in the history
  • Loading branch information
H4ad committed Sep 19, 2023
1 parent 8fe0303 commit 22991bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/orama/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ export type SchemaTypes<Value> = Value extends 'string'
? number
: Value extends 'number[]'
? number[]
: Value extends 'enum'
? string | number
: // eslint-disable-next-line @typescript-eslint/no-unused-vars
Value extends `vector[${number}]`
? number[]
Expand Down

0 comments on commit 22991bf

Please sign in to comment.