You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No TypeScript errors are shown, beautifiers property is allowed.
Error/Stack Traces
[ts]
Argument of type '{ beautifiers: string[]; }' is not assignable to parameter of type 'OptionValues'.
Object literal may only specify known properties, and 'beautifiers' does not exist in type 'OptionValues'.
System (please complete the following information):
OS: macOS
Version: El Capitan, 10.11.6
Additional context
🔥
The text was updated successfully, but these errors were encountered:
After making a bunch of changes, I try it all out:
consttest: OptionValues={beautifiers: ["test"],};
... and it throws an error:
Type '{ beautifiers: string[]; }' is not assignable to type 'OptionValues'.
Type '{ beautifiers: string[]; }' is not assignable to type '{ [beautifierName: string]: BeautifierSpecificOptionValues & DependenciesForBeautifierRegistry; }'.
Property 'beautifiers' is incompatible with index signature.
Type 'string[]' is not assignable to type 'BeautifierSpecificOptionValues & DependenciesForBeautifierRegistry'.
Type 'string[]' is not assignable to type 'DependenciesForBeautifierRegistry'.
Index signature is missing in type 'string[]'.ts(2322
Describe the bug
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No TypeScript errors are shown,
beautifiers
property is allowed.Error/Stack Traces
System (please complete the following information):
Additional context
🔥
The text was updated successfully, but these errors were encountered: