Skip to content

Commit

Permalink
Merge pull request #213 from Hagendorn/fix/missing-context-in-types
Browse files Browse the repository at this point in the history
fix: add missing supported Svelte options to SvelteComponentOptions #212
  • Loading branch information
yanick authored Oct 13, 2023
2 parents 66c9f45 + 4cd7a7e commit 800e33e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
// Definitions by: Rahim Alwer <https://github.com/mihar-22>

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

import { SvelteComponent, ComponentProps, ComponentConstructorOptions } from 'svelte'

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 800e33e

Please sign in to comment.