From 22991bf077733bf61ec57f780fa0e5128cc2b6b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Louren=C3=A7o?= Date: Mon, 18 Sep 2023 21:47:08 -0300 Subject: [PATCH] fixup! feat: added strong typed orama schema --- packages/orama/src/types.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/orama/src/types.ts b/packages/orama/src/types.ts index 6da2b3b98..ace3f8326 100644 --- a/packages/orama/src/types.ts +++ b/packages/orama/src/types.ts @@ -22,6 +22,8 @@ export type SchemaTypes = 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[]