We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 66c9f45 + 4cd7a7e commit 800e33eCopy full SHA for 800e33e
types/index.d.ts
@@ -3,11 +3,12 @@
3
// Definitions by: Rahim Alwer <https://github.com/mihar-22>
4
5
import {queries, Queries, BoundFunction, EventType} from '@testing-library/dom'
6
-import { SvelteComponent, ComponentProps } from 'svelte'
+
7
+import { SvelteComponent, ComponentProps, ComponentConstructorOptions } from 'svelte'
8
9
export * from '@testing-library/dom'
10
-type SvelteComponentOptions<C extends SvelteComponent> = ComponentProps<C> | {props: ComponentProps<C>}
11
+type SvelteComponentOptions<C extends SvelteComponent> = ComponentProps<C> | Pick<ComponentConstructorOptions<ComponentProps<C>>, "anchor" | "props" | "hydrate" | "intro" | "context">
12
13
type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>
14
0 commit comments