Skip to content

Commit

Permalink
fix: add missing supported Svelte options to SvelteComponentOptions t…
Browse files Browse the repository at this point in the history
  • Loading branch information
Hagendorn committed Mar 1, 2023
1 parent 373a666 commit 784a970
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
// Definitions by: Rahim Alwer <https://github.com/mihar-22>

import {queries, Queries, BoundFunction, EventType} from '@testing-library/dom'
import { SvelteComponent, ComponentProps } from 'svelte/types/runtime'
import { SvelteComponent, ComponentProps, ComponentConstructorOptions } from 'svelte/types/runtime'

export * from '@testing-library/dom'

type SvelteComponentOptions<C extends SvelteComponent> = ComponentProps<C> | {props: ComponentProps<C>}
type SvelteComponentOptions<C extends SvelteComponent> = ComponentProps<C> | Pick<ComponentConstructorOptions<ComponentProps<C>>, "anchor" | "props" | "hydrate" | "intro" | "context">

type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>

Expand Down

0 comments on commit 784a970

Please sign in to comment.