fix vscode bad auto indent

This commit is contained in:
Rantetsu Inori 2024-09-10 01:01:29 +08:00
parent 7326b76bf9
commit 24c706741d
2 changed files with 15 additions and 15 deletions

View File

@ -77,17 +77,17 @@ expectType<JSX.Element>(<Empty onClick={(e: MouseEvent) => { }} />)
// @ts-expect-error
expectType<JSX.Element>(<Custom />)
// @ts-expect-error
; <Custom bar="bar" />
// @ts-expect-error
; <Custom baz="baz" />
// @ts-expect-error
; <Custom baz={1} notExist={1} />
// @ts-expect-error
; <Custom baz={1} custom="custom" />
// @ts-expect-error
; <Custom baz={1} onClick={(e: MouseEvent) => { }} />
// @ts-expect-error
; <Empty baz={1} />
// @ts-expect-error
; <Empty onClick={(e: number) => { }} />
// @ts-expect-error
; <Custom bar="bar" />
// @ts-expect-error
; <Custom baz="baz" />
// @ts-expect-error
; <Custom baz={1} notExist={1} />
// @ts-expect-error
; <Custom baz={1} custom="custom" />
// @ts-expect-error
; <Custom baz={1} onClick={(e: MouseEvent) => { }} />
// @ts-expect-error
; <Empty baz={1} />
// @ts-expect-error
; <Empty onClick={(e: number) => { }} />

View File

@ -285,7 +285,7 @@ export type CreateComponentPublicInstanceWithMixins<
export type ExposedKeys<
T,
Exposed extends string & keyof T,
> = '' extends Exposed ? T : Pick<T, Exposed>
> = '' extends Exposed ? T : Pick<T, Exposed>
type Override<T, U> = Omit<T, keyof U> & U