Skip to content

Commit

Permalink
fix formatting of Portal.svelte.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
cshaa committed Jun 2, 2022
1 parent d286d7f commit 66defc7
Showing 1 changed file with 23 additions and 17 deletions.
40 changes: 23 additions & 17 deletions src/Portal.svelte.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,33 @@ import { SvelteComponentTyped } from "svelte";
* @param {HTMLElement} el
* @param {HTMLElement|string} target DOM Element or CSS Selector
*/
export declare function portal(el: HTMLElement, target?: HTMLElement | string): {
update: (newTarget: HTMLElement | string) => Promise<void>;
destroy: () => void;
export declare function portal(
el: HTMLElement,
target?: HTMLElement | string
): {
update: (newTarget: HTMLElement | string) => Promise<void>;
destroy: () => void;
};
declare const __propDef: {
props: {
/**
* DOM Element or CSS Selector
* @type { HTMLElement|string}
*/ target?: string | HTMLElement | undefined;
};
events: {
[evt: string]: CustomEvent<any>;
};
slots: {
default: {};
};
props: {
/**
* DOM Element or CSS Selector
* @type { HTMLElement|string}
*/ target?: string | HTMLElement | undefined;
};
events: {
[evt: string]: CustomEvent<any>;
};
slots: {
default: {};
};
};
export declare type PortalProps = typeof __propDef.props;
export declare type PortalEvents = typeof __propDef.events;
export declare type PortalSlots = typeof __propDef.slots;
export default class Portal extends SvelteComponentTyped<PortalProps, PortalEvents, PortalSlots> {
}
export default class Portal extends SvelteComponentTyped<
PortalProps,
PortalEvents,
PortalSlots
> {}
export {};

0 comments on commit 66defc7

Please sign in to comment.