mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-05-19 07:42:43 +00:00
Merge pull request #135 from aryasaatvik/ui-tsconfig
fix(ui, repo): resolve typescript svg import error
This commit is contained in:
commit
209de178f6
5 changed files with 8 additions and 5 deletions
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
|
|
@ -2,5 +2,6 @@
|
|||
"css.validate": false,
|
||||
"editor.quickSuggestions": {
|
||||
"strings": true
|
||||
}
|
||||
},
|
||||
"typescript.tsdk": "node_modules/typescript/lib"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -4,5 +4,5 @@
|
|||
"outDir": "dist"
|
||||
},
|
||||
"exclude": ["node_modules", "dist"],
|
||||
"include": ["shadcn", "icons", "hooks", "components"]
|
||||
"include": ["shadcn", "icons", "hooks", "components", "types.d.ts"]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
4
packages/ui/types.d.ts
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
declare module "*.svg" {
|
||||
const content: React.FunctionComponent<React.SVGAttributes<SVGElement>>;
|
||||
export default content;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue