Skip to content

Conversation

woruyu
Copy link

@woruyu woruyu commented Oct 24, 2023

Fixes #2751

Comment on lines +71 to +73

/** Sanitizes an option value to be a valid value of the option's type. */
export function sanitizeValue(value: any, type: string): boolean | number | string | null | number[] | string[]; // eslint-disable-line @typescript-eslint/no-explicit-any
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unrelated change

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, this is only necessary because this function is tested directly...is there a way to avoid that?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you test this case by using merge API?

@HerrCai0907
Copy link
Member

fixed in #2802

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compiling release without sourceMap create a sourcemap named "false"

3 participants