Skip to content

Commit

Permalink
Merge pull request #61 from NitayRabi/nitayr/update-svelte-typesa
Browse files Browse the repository at this point in the history
fix(types): use exported SvelteComponent
  • Loading branch information
mihar-22 authored Nov 18, 2019
2 parents 0c3e82d + f31530c commit e315af9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Definitions by: Rahim Alwer <https://github.com/mihar-22>

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

export * from '@testing-library/dom'

Expand All @@ -28,13 +28,13 @@ export interface RenderOptions<Q extends Queries = typeof queries> {
}

export function render(
component: SvelteComponent,
component: typeof SvelteComponent,
componentOptions?: SvelteComponentOptions,
renderOptions?: Omit<RenderOptions, 'queries'>
): RenderResult

export function render<Q extends Queries>(
component: SvelteComponent,
component: typeof SvelteComponent,
componentOptions?: SvelteComponentOptions,
renderOptions?: RenderOptions<Q>,
): RenderResult<Q>
Expand Down

0 comments on commit e315af9

Please sign in to comment.