Skip to content

Commit

Permalink
chore(inline-svg): start source typing with |
Browse files Browse the repository at this point in the history
  • Loading branch information
vnphanquang committed Oct 4, 2024
1 parent b7e69fe commit 8990206
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/many-fishes-end.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@svelte-put/inline-svg': patch
---

start source typing union with `|` for consistency
2 changes: 1 addition & 1 deletion packages/inline-svg/src/vite/internals.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {};
Expand Down

0 comments on commit 8990206

Please sign in to comment.