File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -319,7 +319,7 @@ interface ToastParams {
319319 /**
320320 * The type of the toast
321321 */
322- type : "info" | "error " | "danger" | "success" ;
322+ type : "info" | "warning " | "danger" | "success" | "secondary ";
323323
324324 /**
325325 * The time in milliseconds after which the toast should be closed
Original file line number Diff line number Diff line change @@ -31,6 +31,14 @@ Liferay.Util.openToast({
3131 autoClose : 5000 ,
3232} ) ;
3333
34+ // $ExpectType void
35+ Liferay . Util . openToast ( {
36+ title : "title" ,
37+ message : "message" ,
38+ type : "warning" ,
39+ autoClose : 5000 ,
40+ } ) ;
41+
3442Liferay . Service ( "/user/get-current-user-id" ) ; // $ExpectType Promise<unknown>
3543Liferay . Loader . require ( "some-module" ) ; // $ExpectType void
3644
You can’t perform that action at this time.
0 commit comments