我想将.editorconfig配置为不会在TypeScript代码中错误包装TypeParamater
子句。
以下是包装方式的示例:
export type OptionTypes<
TFilter extends OptionCollectionFilter,
O extends Record<string, OptionConfig> = OptionsCollection,
TMarkRequired extends DefaultMode.Any = DefaultMode.SetManually | DefaultMode.Configured
> =
ExtractTypes<
FilterOptions<{ include: TFilter['include'], exclude: UnwrapArray<TFilter['exclude']> | TMarkRequired }, O> &
Required<FilterOptions<{ include: TMarkRequired }, O>>
>
// Becomes
export type OptionTypes<TFilter extends OptionCollectionFilter,
O extends Record<string, OptionConfig> = OptionsCollection,
TMarkRequired extends DefaultMode.Any = DefaultMode.SetManually | DefaultMode.Configured> =
ExtractTypes<FilterOptions<{ include: TFilter['include'], exclude: UnwrapArray<TFilter['exclude']> | TMarkRequired }, O> &
Required<FilterOptions<{ include: TMarkRequired }, O>>>
我想保留原始的格式设置样式。我可以简单地删除类似JSX的子句的规则。