From 12b726cf2201726d70d9d7f0d2ada73e7482b461 Mon Sep 17 00:00:00 2001 From: Sergey Petushkov Date: Thu, 21 Sep 2023 13:54:59 +0200 Subject: [PATCH] chore(mongodb-constants): fix constants type (#166) --- packages/mongodb-constants/src/filter.ts | 2 +- packages/mongodb-constants/src/system-variables.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/mongodb-constants/src/filter.ts b/packages/mongodb-constants/src/filter.ts index ef9cc095..f7a4e78c 100644 --- a/packages/mongodb-constants/src/filter.ts +++ b/packages/mongodb-constants/src/filter.ts @@ -69,7 +69,7 @@ export type FilterOptions = { /** * Filter completions by completion category */ - meta?: (Meta | 'field:*' | 'accumulator:*' | 'expr:*')[]; + meta?: (Meta | 'field:*' | 'accumulator:*' | 'expr:*' | 'variable:*')[]; /** * Stage-only filters */ diff --git a/packages/mongodb-constants/src/system-variables.ts b/packages/mongodb-constants/src/system-variables.ts index 0d6ea645..2fe23abf 100644 --- a/packages/mongodb-constants/src/system-variables.ts +++ b/packages/mongodb-constants/src/system-variables.ts @@ -90,6 +90,6 @@ const SYSTEM_VARIABLES = [ description: 'A variable that stores the role names of the authenticated user running the command.', }, -]; +] as const; export { SYSTEM_VARIABLES };