aboutsummaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorDhravya Shah <[email protected]>2024-07-22 21:38:42 -0500
committerGitHub <[email protected]>2024-07-22 21:38:42 -0500
commit209de178f6da3312b4b4ee134d11d2bb25c38502 (patch)
tree4b3ff8dde4715fb6fb75ed52a7fca91fa35d5fab /packages
parentadd damn home icon (diff)
parentresolve ts error for svg imports (diff)
downloadsupermemory-209de178f6da3312b4b4ee134d11d2bb25c38502.tar.xz
supermemory-209de178f6da3312b4b4ee134d11d2bb25c38502.zip
Merge pull request #135 from aryasaatvik/ui-tsconfig
fix(ui, repo): resolve typescript svg import error
Diffstat (limited to 'packages')
-rw-r--r--packages/ui/icons/index.ts2
-rw-r--r--packages/ui/tsconfig.json2
-rw-r--r--packages/ui/tsconfig.lint.json2
-rw-r--r--packages/ui/types.d.ts4
4 files changed, 6 insertions, 4 deletions
diff --git a/packages/ui/icons/index.ts b/packages/ui/icons/index.ts
index 6dc00679..cdbc0024 100644
--- a/packages/ui/icons/index.ts
+++ b/packages/ui/icons/index.ts
@@ -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,
diff --git a/packages/ui/tsconfig.json b/packages/ui/tsconfig.json
index 2e64c120..55fbf930 100644
--- a/packages/ui/tsconfig.json
+++ b/packages/ui/tsconfig.json
@@ -4,5 +4,5 @@
"outDir": "dist"
},
"exclude": ["node_modules", "dist"],
- "include": ["shadcn", "icons", "hooks", "components"]
+ "include": ["shadcn", "icons", "hooks", "components", "types.d.ts"]
}
diff --git a/packages/ui/tsconfig.lint.json b/packages/ui/tsconfig.lint.json
index 2e64c120..55fbf930 100644
--- a/packages/ui/tsconfig.lint.json
+++ b/packages/ui/tsconfig.lint.json
@@ -4,5 +4,5 @@
"outDir": "dist"
},
"exclude": ["node_modules", "dist"],
- "include": ["shadcn", "icons", "hooks", "components"]
+ "include": ["shadcn", "icons", "hooks", "components", "types.d.ts"]
}
diff --git a/packages/ui/types.d.ts b/packages/ui/types.d.ts
new file mode 100644
index 00000000..5783313c
--- /dev/null
+++ b/packages/ui/types.d.ts
@@ -0,0 +1,4 @@
+declare module "*.svg" {
+ const content: React.FunctionComponent<React.SVGAttributes<SVGElement>>;
+ export default content;
+} \ No newline at end of file