diff --git a/typings/index.d.ts b/typings/index.d.ts index 06eaeeaf..53e8caf5 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -3,7 +3,13 @@ import {queries, BoundFunction} from 'dom-testing-library' export * from 'dom-testing-library' interface Query extends Function { - (container: HTMLElement, ...args: any[]): HTMLElement[] | HTMLElement | null + (container: HTMLElement, ...args: any[]): + | Error + | Promise + | Promise + | HTMLElement[] + | HTMLElement + | null } interface Queries {