-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve errors when importing markdown files as components
- Loading branch information
1 parent
c12dd3b
commit 91ef99f
Showing
3 changed files
with
24 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'mdsvex': patch | ||
--- | ||
|
||
Fix typescript module declaration to resolve errors when importing markdown files as components |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
declare module '*.svx' { | ||
import type { SvelteComponentDev } from 'svelte/internal'; | ||
import type { SvelteComponent } from 'svelte' | ||
|
||
export default class Comp extends SvelteComponentDev { | ||
$$prop_def: {}; | ||
} | ||
export const metadata: Record<string, any>; | ||
export default class Comp extends SvelteComponent{} | ||
|
||
export const metadata: Record<string, unknown> | ||
} | ||
|
||
declare module '*.svelte.md' { | ||
import type { SvelteComponentDev } from 'svelte/internal'; | ||
import type { SvelteComponent } from 'svelte' | ||
|
||
export default class Comp extends SvelteComponent{} | ||
|
||
export default class Comp extends SvelteComponentDev { | ||
$$prop_def: {}; | ||
} | ||
export const metadata: Record<string, any>; | ||
export const metadata: Record<string, unknown> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters