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

svelte2tsx

Package Overview
Dependencies
Maintainers
4
Versions
299
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.5.11 to 0.5.12

4

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

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

"sourcemap-codec": "^1.4.8",
"svelte": "~3.48.0",
"svelte": "~3.49.0",
"tiny-glob": "^0.2.6",

@@ -40,0 +40,0 @@ "tslib": "^1.10.0",

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

declare module '*.svelte' {
export default Svelte2TsxComponent
export default _SvelteComponent
}

@@ -57,2 +57,4 @@ // -- end svelte-ls-remove --

type _SvelteComponent<Props=any,Events=any,Slots=any> = typeof import("svelte") extends {SvelteComponentTyped: any} ? import("svelte").SvelteComponentTyped<Props,Events,Slots> : Svelte2TsxComponent<Props,Events,Slots>;
interface Svelte2TsxComponentConstructorParameters<Props extends {}> {

@@ -172,3 +174,3 @@ /**

declare function __sveltets_1_empty(...dummy: any[]): {};
declare function __sveltets_1_componentType(): AConstructorTypeOf<Svelte2TsxComponent<any, any, any>>
declare function __sveltets_1_componentType(): AConstructorTypeOf<_SvelteComponent<any, any, any>>
declare function __sveltets_1_invalidate<T>(getValue: () => T): T

@@ -223,3 +225,3 @@

render: {props: Props, events: Events, slots: Slots }
): SvelteComponentConstructor<Svelte2TsxComponent<Props, Events, Slots>,Svelte2TsxComponentConstructorParameters<Props>>;
): SvelteComponentConstructor<_SvelteComponent<Props, Events, Slots>,Svelte2TsxComponentConstructorParameters<Props>>;

@@ -231,6 +233,7 @@ declare function __sveltets_1_unwrapArr<T>(arr: ArrayLike<T>): T

declare function __sveltets_2_createCreateSlot<Slots = Record<string, Record<string, any>>>(): <SlotName extends keyof Slots>(slotName: SlotName, attrs: Slots[SlotName]) => Record<string, any>;
declare function __sveltets_2_createComponentAny(props: Record<string, any>): Svelte2TsxComponent<any, any, any>;
declare function __sveltets_2_createComponentAny(props: Record<string, any>): _SvelteComponent<any, any, any>;
declare function __sveltets_2_any(...dummy: any[]): any;
declare function __sveltets_2_empty(...dummy: any[]): {};
declare function __sveltets_2_union<T1,T2,T3,T4,T5>(t1:T1,t2?:T2,t3?:T3,t4?:T4,t5?:T5): T1 & T2 & T3 & T4 & T5;

@@ -271,3 +274,3 @@ declare function __sveltets_2_cssProp(prop: Record<string, any>): {};

// when using Svelte2TsxComponent, more precisely the event typings in
// __sveltets_2_ensureComponent<T extends new (..) => Svelte2TsxComponent<any,||any||<-this,any>>(type: T): T;
// __sveltets_2_ensureComponent<T extends new (..) => _SvelteComponent<any,||any||<-this,any>>(type: T): T;
// If we type it as "any", we have an error when using sth like {a: CustomEvent<any>}

@@ -274,0 +277,0 @@ // If we type it as "{}", we have an error when using sth like {[evt: string]: CustomEvent<any>}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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