svelte2tsx
Advanced tools
Comparing version 0.1.86 to 0.1.87
@@ -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, |
{ | ||
"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
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
261633
6532
51