Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

svelte2tsx

Package Overview
Dependencies
Maintainers
3
Versions
296
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte2tsx - npm Package Compare versions

Comparing version 0.1.160 to 0.1.161

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc