Add type definitions for *.svx files by default
See original GitHub issueCurrently, MDsveX doesn’t provide a way for TypeScript to really understand *.svx files. The way Svelte deals with this issue is by declaring a global ambient module (in their ambient.d.ts
file. Since *.svx
files from what I can tell are just disguised Svelte components, this is what I’m using currently to workaround the IDE errors I’m getting:
global.d.ts
// Based on svelte/runtime/ambient.d.ts
declare module "*.svx" {
export { SvelteComponentDev as default } from "svelte/internal";
}
But it’d be awesome if this could be included in the mdsvex package or something to not require this sort of thing. Thanks!
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:16 (13 by maintainers)
Top Results From Across the Web
TypeScript: Adding Custom Type Definitions for Existing ...
In these circumstances, you have to add your own custom type definitions for the libraries. This article will show you how to that....
Read more >Parcel - How do I add type definitions? - Stack Overflow
Parcel relies on the typescript compiler, which is configured by tsconfig.json. The relevant documentation can be found here.
Read more >mdsvex docs!
The extensions option allows you to set custom file extensions for files written in mdsvex; the default value is ['.svx'] . Whatever value...
Read more >How to Write Custom Workspace Nodes - TIBCO Software
A custom workspace node requires two files, an *.svx file that defines the operation of the node, and a *.dmi file that defines...
Read more >Open .SVX File (Sound file) - File Extension
SVX extension are known as Sound files, however other file types may also use ... an SVX file is to simply double-click it...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Resolved in #409 released in
0.10.5
Hero.