diff --git a/.changeset/many-fishes-end.md b/.changeset/many-fishes-end.md new file mode 100644 index 000000000..b2a8fd05e --- /dev/null +++ b/.changeset/many-fishes-end.md @@ -0,0 +1,5 @@ +--- +'@svelte-put/inline-svg': patch +--- + +start source typing union with `|` for consistency diff --git a/packages/inline-svg/src/vite/internals.js b/packages/inline-svg/src/vite/internals.js index eacd0fb13..42387c55b 100644 --- a/packages/inline-svg/src/vite/internals.js +++ b/packages/inline-svg/src/vite/internals.js @@ -47,7 +47,7 @@ export function generateSourceTyping(sources, config, out) { const source = `/** DO NOT EDIT! This file is generated by @svelte-put/inline-svg vite plugin */ declare module 'svelte/elements' { export interface SVGAttributes { - '${config.inlineSrcAttributeName}'?:\n${indent}${nonTyped}\n${indent}| ${typing}; + '${config.inlineSrcAttributeName}'?:\n${indent}| ${nonTyped}\n${indent}| ${typing}; } } export {};