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

svelte2tsx

Package Overview
Dependencies
Maintainers
1
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.1.86 to 0.1.87

5

index.d.ts

@@ -5,2 +5,3 @@ export interface SvelteCompiledToTsx {

exportedNames: IExportedNames;
events: ComponentEvents;
}

@@ -12,2 +13,6 @@

export interface ComponentEvents {
getAll(): { name: string; type: string; doc?: string }[];
}
export default function svelte2tsx(

@@ -14,0 +19,0 @@ svelte: string,

2

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

@@ -5,0 +5,0 @@ "author": "David Pershouse",

@@ -39,3 +39,5 @@ # svelte2tsx

export default class _World_ extends createSvelte2TsxComponent(__sveltets_partial(render)) {}
export default class _World_ extends createSvelte2TsxComponent(
__sveltets_partial(__sveltets_with_any_event(render)),
) {}
```

@@ -42,0 +44,0 @@

@@ -88,2 +88,3 @@ declare module '*.svelte' {

type SvelteRestProps = { [index: string]: any }
type SvelteSlots = { [index: string]: any }
type SvelteStore<T> = { subscribe: (run: (value: T) => any, invalidate?: any) => any }

@@ -107,2 +108,3 @@

declare function __sveltets_restPropsType(): SvelteRestProps
declare function __sveltets_slotsType<Slots, Key extends keyof Slots>(slots: Slots): Record<Key, boolean>;
declare function __sveltets_partial<Props = {}, Events = {}, Slots = {}>(

@@ -117,2 +119,5 @@ render: () => {props?: Props, events?: Events, slots?: Slots }

): () => {props?: Props & SvelteAllProps, events?: Events, slots?: Slots }
declare function __sveltets_with_any_event<Props = {}, Events = {}, Slots = {}>(
render: () => {props?: Props, events?: Events, slots?: Slots }
): () => {props?: Props, events?: Events & {[evt: string]: CustomEvent<any>;}, slots?: Slots }
declare function __sveltets_store_get<T = any>(store: SvelteStore<T>): T

@@ -168,2 +173,2 @@ declare function __sveltets_any(dummy: any): any;

render: () => {props?: Props, events?: Events, slots?: Slots }
): AConstructorTypeOf<Svelte2TsxComponent<Props, Events & {[evt: string]: CustomEvent<any>;}, Slots>>;
): AConstructorTypeOf<Svelte2TsxComponent<Props, Events, 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