From 0ec2aab358aa1b91d3564f276a22678f7b87cebb Mon Sep 17 00:00:00 2001 From: Sergey Petushkov Date: Thu, 21 Sep 2023 12:23:19 +0200 Subject: [PATCH] chore(mongodb-constants): fix constants type --- 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 fb7ab955..baa473c8 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 };