svelte2tsx 0.6.22 → 0.6.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/index.d.ts +4 -0
  2. package/index.js +376 -228
  3. package/index.mjs +375 -227
  4. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -75,6 +75,10 @@ export function svelte2tsx(
75
75
  * see https://svelte.dev/docs#svelte_compile for more info
76
76
  */
77
77
  accessors?: boolean
78
+ /**
79
+ * The Svelte parser to use. Defaults to the one bundled with `svelte2tsx`.
80
+ */
81
+ parse?: typeof import('svelte/compiler').parse;
78
82
  }
79
83
  ): SvelteCompiledToTsx
80
84