svelte-check
Advanced tools
Comparing version 1.1.16 to 1.1.17
@@ -27,19 +27,3 @@ declare module '*.svelte' { | ||
// https://svelte.dev/docs#Client-side_component_API | ||
constructor(options: { | ||
/** | ||
* An HTMLElement to render to. This option is required. | ||
*/ | ||
target: Element; | ||
/** | ||
* A child of `target` to render the component immediately before. | ||
*/ | ||
anchor?: Element; | ||
/** | ||
* An object of properties to supply to the component. | ||
*/ | ||
props?: Props; | ||
hydrate?: boolean; | ||
intro?: boolean; | ||
$$inline?: boolean; | ||
}); | ||
constructor(options: Svelte2TsxComponentConstructorParameters<Props>); | ||
/** | ||
@@ -66,4 +50,23 @@ * Causes the callback function to be called whenever the component dispatches an event. | ||
type AConstructorTypeOf<T> = new (...args: any[]) => T; | ||
interface Svelte2TsxComponentConstructorParameters<Props extends {}> { | ||
/** | ||
* An HTMLElement to render to. This option is required. | ||
*/ | ||
target: Element; | ||
/** | ||
* A child of `target` to render the component immediately before. | ||
*/ | ||
anchor?: Element; | ||
/** | ||
* An object of properties to supply to the component. | ||
*/ | ||
props?: Props; | ||
hydrate?: boolean; | ||
intro?: boolean; | ||
$$inline?: boolean; | ||
} | ||
type AConstructorTypeOf<T, U extends any[] = any[]> = new (...args: U) => T; | ||
type SvelteComponentConstructor<T, U extends Svelte2TsxComponentConstructorParameters<any>> = new (options: U) => T; | ||
type SvelteAction<U extends any[], El extends any> = (node: El, ...args:U) => { | ||
@@ -179,5 +182,5 @@ update?: (...args:U) => void, | ||
render: () => {props?: Props, events?: Events, slots?: Slots } | ||
): AConstructorTypeOf<Svelte2TsxComponent<Props, Events, Slots>>; | ||
): SvelteComponentConstructor<Svelte2TsxComponent<Props, Events, Slots>,Svelte2TsxComponentConstructorParameters<Props>>; | ||
declare function __sveltets_unwrapArr<T>(arr: ArrayLike<T>): T | ||
declare function __sveltets_unwrapPromiseLike<T>(promise: PromiseLike<T> | T): T |
{ | ||
"name": "svelte-check", | ||
"description": "Svelte Code Checker Terminal Interface", | ||
"version": "1.1.16", | ||
"version": "1.1.17", | ||
"main": "./dist/src/index.js", | ||
@@ -6,0 +6,0 @@ "bin": "./bin/svelte-check", |
4574298
2063