-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(types): Solved missing definition for
AlertHandler
component.
- Loading branch information
Showing
5 changed files
with
84 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
import type { PropType } from "vue"; | ||
import { Alert } from "../models/index.js"; | ||
import type { AlertOptions } from "../types/alert/index.js"; | ||
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{ | ||
is: { | ||
default: string; | ||
type: (StringConstructor | ObjectConstructor)[]; | ||
}; | ||
duration: { | ||
default: () => string | number | { | ||
enter: string | number; | ||
leave: string | number; | ||
}; | ||
type: (StringConstructor | ObjectConstructor | NumberConstructor)[]; | ||
validator: (value: unknown) => boolean; | ||
}; | ||
filter: { | ||
default: () => boolean; | ||
type: PropType<(options: AlertOptions<unknown>) => boolean>; | ||
}; | ||
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { | ||
opening: (alert: Alert<unknown>) => boolean; | ||
opened: (alert: Alert<unknown>) => boolean; | ||
closing: (alert: Alert<unknown>) => boolean; | ||
closed: (alert: Alert<unknown>) => boolean; | ||
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{ | ||
is: { | ||
default: string; | ||
type: (StringConstructor | ObjectConstructor)[]; | ||
}; | ||
duration: { | ||
default: () => string | number | { | ||
enter: string | number; | ||
leave: string | number; | ||
}; | ||
type: (StringConstructor | ObjectConstructor | NumberConstructor)[]; | ||
validator: (value: unknown) => boolean; | ||
}; | ||
filter: { | ||
default: () => boolean; | ||
type: PropType<(options: AlertOptions<unknown>) => boolean>; | ||
}; | ||
}>> & { | ||
onOpening?: ((alert: Alert<unknown>) => any) | undefined; | ||
onOpened?: ((alert: Alert<unknown>) => any) | undefined; | ||
onClosing?: ((alert: Alert<unknown>) => any) | undefined; | ||
onClosed?: ((alert: Alert<unknown>) => any) | undefined; | ||
}, { | ||
filter: (options: AlertOptions<unknown>) => boolean; | ||
is: string | Record<string, any>; | ||
duration: string | number | Record<string, any>; | ||
}, {}>, { | ||
default?(_: { | ||
alert: Alert<any>; | ||
isOpen: boolean; | ||
resolve: (result?: any) => void; | ||
reject: (error: Error) => void; | ||
}): any; | ||
}>; | ||
export default _default; | ||
type __VLS_WithTemplateSlots<T, S> = T & { | ||
new (): { | ||
$slots: S; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters