Skip to content

Commit

Permalink
add missing typehints for the notification component (buefy#3316)
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenvanasperen authored May 3, 2021
1 parent 1cb7ba3 commit 7906c00
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions types/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -386,10 +386,45 @@ export declare const ToastProgrammatic: {
}

export declare type BNotificationConfig = BNoticeConfig & {
/**
* Whether notification is active or not, use the .sync modifier to make it two-way binding
*/
active?: boolean;

/**
* Hide notification after duration only not programmatic
*/
autoClose?: boolean;

/**
* Custom animation (transition name)
*/
animation?: string;

/**
* Label for the close button, to be read by accessibility screenreaders.
*/
ariaCloseLabel?: string;

/**
* Adds an 'X' button that closes the notification
*/
closable?: boolean;

/**
* Adds an icon on the left side
*/
hasIcon?: boolean;

/**
* Icon name to use with has-icon
*/
icon?: string;

/**
* Icon pack to use
*/
iconPack?: string;
}
export declare const NotificationProgrammatic: {
open: (params: BNotificationConfig | string) => BNoticeComponent;
Expand Down

0 comments on commit 7906c00

Please sign in to comment.