mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-08 14:14:56 +03:00
refactor: make maxDisplayedEnumValues optional
This commit is contained in:
parent
7909200070
commit
de589fd9c5
|
@ -58,8 +58,6 @@ function argValueToNumber(value: number | string | undefined): number | undefine
|
||||||
if (typeof value === 'number') {
|
if (typeof value === 'number') {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return undefined;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export class RedocNormalizedOptions {
|
export class RedocNormalizedOptions {
|
||||||
|
@ -188,7 +186,7 @@ export class RedocNormalizedOptions {
|
||||||
allowedMdComponents: Record<string, MDXComponentMeta>;
|
allowedMdComponents: Record<string, MDXComponentMeta>;
|
||||||
|
|
||||||
expandDefaultServerVariables: boolean;
|
expandDefaultServerVariables: boolean;
|
||||||
maxDisplayedEnumValues: number | undefined;
|
maxDisplayedEnumValues?: number;
|
||||||
|
|
||||||
constructor(raw: RedocRawOptions, defaults: RedocRawOptions = {}) {
|
constructor(raw: RedocRawOptions, defaults: RedocRawOptions = {}) {
|
||||||
raw = { ...defaults, ...raw };
|
raw = { ...defaults, ...raw };
|
||||||
|
|
Loading…
Reference in New Issue
Block a user