Skip to content

Commit 01b7b9a

Browse files
authored
fix(programmatic): solve close function type mismatch (#1576)
The error occours when building in the files `useModalProgrammatic.ts`, `useNotificationProgrammatic.ts` and `useSidebarProgrammatic.ts`, which are all related to a component with a close emit. - changed type of CloseFunction from `[]` to `unknown[]`
1 parent 604b5c2 commit 01b7b9a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/oruga/src/components/programmatic/ProgrammaticComponent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export type CloseEventArgs<T extends VNodeTypes> =
3838

3939
/** The ProgrammaticComponent close funtion definition. */
4040
type CloseFunction<C extends VNodeTypes> = (
41-
...args: CloseEventArgs<C> | []
41+
...args: CloseEventArgs<C> | unknown[]
4242
) => void;
4343

4444
export type ProgrammaticComponentEmits<C extends VNodeTypes> = {

0 commit comments

Comments
 (0)