Merge pull request #135 from aryasaatvik/ui-tsconfig

fix(ui, repo): resolve typescript svg import error
This commit is contained in:
Dhravya Shah 2024-07-22 21:38:42 -05:00 committed by GitHub
commit 209de178f6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 8 additions and 5 deletions

View file

@ -2,5 +2,6 @@
"css.validate": false,
"editor.quickSuggestions": {
"strings": true
}
},
"typescript.tsdk": "node_modules/typescript/lib"
}

View file

@ -9,7 +9,6 @@ import SearchIcon from "./search.svg";
import NextIcon from "./nextarrow.svg";
import UrlIcon from "./url.svg";
import CanvasIcon from "./canvas.svg";
import blockIcon from "./block.svg";
import LinkIcon from "./link.svg";
import AutocompleteIcon from "./autocomplete.svg";
import BlockIcon from "./block.svg";
@ -29,7 +28,6 @@ export {
NextIcon,
UrlIcon,
CanvasIcon,
blockIcon,
LinkIcon,
AutocompleteIcon,
BlockIcon,

View file

@ -4,5 +4,5 @@
"outDir": "dist"
},
"exclude": ["node_modules", "dist"],
"include": ["shadcn", "icons", "hooks", "components"]
"include": ["shadcn", "icons", "hooks", "components", "types.d.ts"]
}

View file

@ -4,5 +4,5 @@
"outDir": "dist"
},
"exclude": ["node_modules", "dist"],
"include": ["shadcn", "icons", "hooks", "components"]
"include": ["shadcn", "icons", "hooks", "components", "types.d.ts"]
}

4
packages/ui/types.d.ts vendored Normal file
View file

@ -0,0 +1,4 @@
declare module "*.svg" {
const content: React.FunctionComponent<React.SVGAttributes<SVGElement>>;
export default content;
}