Skip to content

Commit 075acc1

Browse files
committed
refactor: 更新简单组件的类型
1 parent 7edceba commit 075acc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/simple-props/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export type ComponentType<
3232
ExtractProps<T>,
3333
ExtractEvent<T>,
3434
SlotsType<ExtractSlots<T> & S>
35-
> & { new (): Expose }
35+
> & { new (...args: any[]): Expose }
3636

3737
type IfAny<T, Y, N> = 0 extends 1 & T ? Y : N
3838
export interface FunctionalComponent<

0 commit comments

Comments
 (0)