Skip to content

Commit

Permalink
fix: missing type of API modal & popup options. (#400)
Browse files Browse the repository at this point in the history
refactor: update type
  • Loading branch information
airslice committed Jan 18, 2023
1 parent ff47c54 commit a68b245
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/components/molecules/Visualizer/Plugin/api.ts
Expand Up @@ -130,11 +130,11 @@ export function exposed({
modal: {
show: (
html: string,
options?:
| {
background?: string;
}
| undefined,
options?: {
width?: number | string;
height?: number | string;
background?: string;
},
) => {
renderModal(html, options);
},
Expand All @@ -145,12 +145,12 @@ export function exposed({
popup: {
show: (
html: string,
options:
| {
position?: PopupPosition;
offset?: number;
}
| undefined,
options?: {
width?: number | string;
height?: number | string;
position?: PopupPosition;
offset?: number;
},
) => {
renderPopup(html, options);
},
Expand Down

0 comments on commit a68b245

Please sign in to comment.