diff options
| author | Saatvik Arya <[email protected]> | 2024-07-22 19:32:21 -0700 |
|---|---|---|
| committer | Saatvik Arya <[email protected]> | 2024-07-22 19:32:21 -0700 |
| commit | d2390934575d35c3db958770af4c76f13c8f0cc5 (patch) | |
| tree | f63782daa272c5e844b87a33d7067240da14dac6 | |
| parent | remove redundant icon export (diff) | |
| download | supermemory-d2390934575d35c3db958770af4c76f13c8f0cc5.tar.xz supermemory-d2390934575d35c3db958770af4c76f13c8f0cc5.zip | |
resolve ts error for svg imports
| -rw-r--r-- | packages/ui/tsconfig.json | 2 | ||||
| -rw-r--r-- | packages/ui/tsconfig.lint.json | 2 | ||||
| -rw-r--r-- | packages/ui/types.d.ts | 4 |
3 files changed, 6 insertions, 2 deletions
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 |