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

svelte2tsx

Package Overview
Dependencies
Maintainers
4
Versions
287
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.7.6 to 0.7.7

4

package.json
{
"name": "svelte2tsx",
"version": "0.7.6",
"version": "0.7.7",
"description": "Convert Svelte components to TSX for type checking",

@@ -43,3 +43,3 @@ "author": "David Pershouse",

"tslib": "^2.4.0",
"typescript": "^5.3.2"
"typescript": "^5.4.5"
},

@@ -46,0 +46,0 @@ "peerDependencies": {

@@ -8,4 +8,2 @@ // Whenever a ambient declaration changes, its number should be increased

type AConstructorTypeOf<T, U extends any[] = any[]> = new (...args: U) => T;
/** @internal PRIVATE API, DO NOT USE */
type SvelteComponentConstructor<T, U extends import('svelte').ComponentConstructorOptions<any>> = new (options: U) => T;

@@ -99,3 +97,3 @@ /** @internal PRIVATE API, DO NOT USE */

render: {props: Props, events: Events, slots: Slots }
): {props: Props, events: Events & {[evt: string]: CustomEvent<any>;}, slots: Slots }
): {props: Expand<Props>, events: Events & {[evt: string]: CustomEvent<any>;}, slots: Slots }

@@ -134,3 +132,3 @@ declare function __sveltets_2_store_get<T = any>(store: SvelteStore<T>): T

render: {props: Props, events: Events, slots: Slots }
): SvelteComponentConstructor<import("svelte").SvelteComponent<Props, Events, Slots>,import('svelte').ComponentConstructorOptions<Props>>;
): typeof import("svelte").SvelteComponent<Props, Events, Slots>;

@@ -236,1 +234,22 @@ declare function __sveltets_2_unwrapArr<T>(arr: ArrayLike<T>): T

declare function __sveltets_2_ensureArray<T extends ArrayLike<unknown> | Iterable<unknown>>(array: T): T extends ArrayLike<infer U> ? U[] : T extends Iterable<infer U> ? Iterable<U> : any[];
declare type __sveltets_2_Bindings<Props extends Record<string, any>, Bindings extends string> = {
[K in keyof Props]: K extends Bindings ?
// @ts-ignore not available in Svelte 4
import('svelte').Bindable<Props[K]> :
Props[K]
};
declare function __sveltets_2_binding<T>(prop: T):
// @ts-ignore not available in Svelte 4
import('svelte').Binding<T>;
type __sveltets_2_PropsWithChildren<Props, Slots> = Props &
(Slots extends { default: any }
// This is unfortunate because it means "accepts no props" turns into "accepts any prop"
// but the alternative is non-fixable type errors because of the way TypeScript index
// signatures work (they will always take precedence and make an impossible-to-satisfy children type).
? Props extends Record<string, never>
? any
: { children?: any }
: {});
declare function __sveltets_2_runes_constructor<Props extends {}, Events extends {}, Slots extends {}>(render: {props: Props, events: Events, slots: Slots }): import("svelte").ComponentConstructorOptions<__sveltets_2_PropsWithChildren<Props, Slots>>;

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