svelte2tsx
Advanced tools
Comparing version 0.1.160 to 0.1.161
{ | ||
"name": "svelte2tsx", | ||
"version": "0.1.160", | ||
"version": "0.1.161", | ||
"description": "Convert Svelte components to TSX for type checking", | ||
@@ -5,0 +5,0 @@ "author": "David Pershouse", |
@@ -21,6 +21,8 @@ # svelte2tsx | ||
```svelte | ||
<h1>hello {world}</h1> | ||
<script> | ||
export let world = "name" | ||
export let world = 'name'; | ||
</script> | ||
<h1>hello {world}</h1> | ||
``` | ||
@@ -41,3 +43,3 @@ | ||
export default class _World_ extends createSvelte2TsxComponent( | ||
__sveltets_partial(__sveltets_with_any_event(render)), | ||
__sveltets_partial(__sveltets_with_any_event(render)) | ||
) {} | ||
@@ -44,0 +46,0 @@ ``` |
@@ -70,4 +70,4 @@ declare module '*.svelte' { | ||
type SvelteAction<U extends any[], El extends any> = (node: El, ...args:U) => { | ||
update?: (...args:U) => void, | ||
type SvelteActionReturnType = { | ||
update?: (args: any) => void, | ||
destroy?: () => void | ||
@@ -84,5 +84,5 @@ } | void | ||
type SvelteTransition<U extends any[]> = (node: Element, ...args: U) => SvelteTransitionConfig | (() => SvelteTransitionConfig) | ||
type SvelteTransitionReturnType = SvelteTransitionConfig | (() => SvelteTransitionConfig) | ||
type SvelteAnimation<U extends any[]> = (node: Element, move: { from: DOMRect, to: DOMRect }, ...args: U) => { | ||
type SvelteAnimationReturnType = { | ||
delay?: number, | ||
@@ -103,10 +103,8 @@ duration?: number, | ||
declare var process: NodeJS.Process & { browser: boolean } | ||
declare var __sveltets_ElementNode: Element | ||
declare var __sveltets_AnimationMove: { from: DOMRect, to: DOMRect } | ||
declare function __sveltets_ensureAnimation<U extends any[]>(animation: SvelteAnimation<U>, ...args: U): {}; | ||
declare function __sveltets_ensureAction<U extends any[], El extends any>( | ||
el: El, | ||
action: SvelteAction<U, El>, | ||
...args: U | ||
): {}; | ||
declare function __sveltets_ensureTransition<U extends any[]>(transition: SvelteTransition<U>, ...args: U): {}; | ||
declare function __sveltets_ensureAnimation(animationCall: SvelteAnimationReturnType): {}; | ||
declare function __sveltets_ensureAction(actionCall: SvelteActionReturnType): {}; | ||
declare function __sveltets_ensureTransition(transitionCall: SvelteTransitionReturnType): {}; | ||
declare function __sveltets_ensureFunction(expression: (e: Event & { detail?: any }) => unknown ): {}; | ||
@@ -113,0 +111,0 @@ declare function __sveltets_ensureType<T>(type: AConstructorTypeOf<T>, el: T): {}; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
330173
53