feat(link): add OutboundLink

This commit is contained in:
Eric Liu 2021-02-03 05:16:43 -08:00
commit 422e991b71
8 changed files with 64 additions and 7 deletions

13
types/Link/OutboundLink.d.ts vendored Normal file
View file

@ -0,0 +1,13 @@
/// <reference types="svelte" />
import { LinkProps } from "./Link";
export interface OutboundLinkProps extends LinkProps {}
export default class OutboundLink {
$$prop_def: OutboundLinkProps;
$$slot_def: {
default: {};
};
$on(eventname: string, cb: (event: Event) => void): () => void;
}

1
types/index.d.ts vendored
View file

@ -73,6 +73,7 @@ export { default as Column } from "./Grid/Column";
export { default as IconSkeleton } from "./Icon/IconSkeleton";
export { default as Icon } from "./Icon/Icon";
export { default as InlineLoading } from "./InlineLoading/InlineLoading";
export { default as OutboundLink } from "./Link/OutboundLink";
export { default as ListItem } from "./ListItem/ListItem";
export { default as MultiSelect } from "./MultiSelect/MultiSelect";
export { default as Modal } from "./Modal/Modal";