Skip to content

Commit

Permalink
refactor: make maxDisplayedEnumValues optional
Browse files Browse the repository at this point in the history
  • Loading branch information
lesyk-lesyk committed Jul 21, 2020
1 parent 7909200 commit de589fd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/services/RedocNormalizedOptions.ts
Expand Up @@ -58,8 +58,6 @@ function argValueToNumber(value: number | string | undefined): number | undefine
if (typeof value === 'number') {
return value;
}

return undefined;
}

export class RedocNormalizedOptions {
Expand Down Expand Up @@ -188,7 +186,7 @@ export class RedocNormalizedOptions {
allowedMdComponents: Record<string, MDXComponentMeta>;

expandDefaultServerVariables: boolean;
maxDisplayedEnumValues: number | undefined;
maxDisplayedEnumValues?: number;

constructor(raw: RedocRawOptions, defaults: RedocRawOptions = {}) {
raw = { ...defaults, ...raw };
Expand Down

0 comments on commit de589fd

Please sign in to comment.