svelte-standalone
Version:
Transform Svelte components in standalone scripts!
30 lines (29 loc) • 1.24 kB
TypeScript
declare const embeddableStrategy: {
readonly type: "list";
readonly name: "type";
readonly message: "When should your embeddable be triggered?";
readonly choices: readonly [{
readonly name: "On explicit call (can only be mounted once)";
readonly value: "embed";
readonly short: "Explicit call";
}, {
readonly name: "On explicit call (can be mounted multiple times)";
readonly value: "embedMultiple";
readonly short: "Explicit call w/ instances";
}, {
readonly name: "Automatically append to the target id when downloaded";
readonly value: "autoEmbedWithTarget";
readonly short: "Auto-embed with id selector";
}, {
readonly name: "Automatically append to the target class when downloaded";
readonly value: "autoEmbedMultiple";
readonly short: "Auto-embed with class selector";
}, {
readonly name: "Automatically append to the <body> when downloaded";
readonly value: "autoEmbedOnBody";
readonly short: "Auto-embed on body";
}];
};
export type EmbeddableStrategies = (typeof embeddableStrategy.choices)[number]['value'];
export declare function generate(): Promise<void>;
export {};