Skip to content

Commit

Permalink
fix: solve typo in NotificationProgrammaticOptions type (#1117)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzejkupczyk authored Nov 19, 2024
1 parent 40b8a52 commit 16cf988
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ declare module "../../index" {
const instances = new InstanceRegistry<ComponentInternalInstance>();

/** useNotificationProgrammatic composable options */
type NotifcationProgrammaticOptions<C extends Component> = Readonly<
type NotificationProgrammaticOptions<C extends Component> = Readonly<
Omit<
NotificationNoticeProps<C> & NotificationProps,
"message" | "container"
Expand All @@ -38,10 +38,10 @@ const useNotificationProgrammatic = {
* @returns ProgrammaticExpose
*/
open<C extends Component>(
options: string | NotifcationProgrammaticOptions<C>,
options: string | NotificationProgrammaticOptions<C>,
target?: string | HTMLElement | null,
): ProgrammaticExpose {
const _options: NotifcationProgrammaticOptions<C> =
const _options: NotificationProgrammaticOptions<C> =
typeof options === "string" ? { message: options } : options;

let slot;
Expand Down

0 comments on commit 16cf988

Please sign in to comment.