Skip to content

Commit

Permalink
feat(NODE-2939): update canonicalization options
Browse files Browse the repository at this point in the history
Co-authored-by: Bailey Pearson <bailey.pearson@mongodb.com>
  • Loading branch information
durran and baileympearson committed Feb 10, 2022
1 parent b6e90e5 commit 4fea7eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cmap/auth/mongo_credentials.ts
Expand Up @@ -25,10 +25,10 @@ function getDefaultAuthMechanism(hello?: Document): AuthMechanism {
return AuthMechanism.MONGODB_CR;
}

const CANONICALIZATION_VALUES = [true, false, 'none', 'forward', 'forwardAndReverse'];
const CANONICALIZATION_VALUES = [true, false, 'none', 'forward', 'forwardAndReverse'] as const;

/** @public */
export type CanonicalizationProperties = boolean | 'none' | 'forward' | 'forwardAndReverse';
export type CanonicalizationProperties = typeof CANONICALIZATION_VALUES[number];

/** @public */
export interface AuthMechanismProperties extends Document {
Expand Down

0 comments on commit 4fea7eb

Please sign in to comment.