2021-06-27 01:35:00 +00:00
|
|
|
// This directory contains a number of d.ts assertions
|
|
|
|
// use \@ts-expect-error where errors are expected.
|
2019-11-04 23:38:55 +00:00
|
|
|
|
2019-11-02 02:54:01 +00:00
|
|
|
export * from '@vue/runtime-dom'
|
2019-11-22 23:09:26 +00:00
|
|
|
|
|
|
|
export function describe(_name: string, _fn: () => void): void
|
2022-05-18 23:34:35 +00:00
|
|
|
export function test(_name: string, _fn: () => any): void
|
2020-06-09 14:17:42 +00:00
|
|
|
|
|
|
|
export function expectType<T>(value: T): void
|
|
|
|
export function expectError<T>(value: T): void
|
|
|
|
export function expectAssignable<T, T2 extends T = T>(value: T2): void
|
2021-03-25 15:27:54 +00:00
|
|
|
|
2022-05-06 09:07:49 +00:00
|
|
|
export type IsUnion<T, U extends T = T> = (
|
|
|
|
T extends any ? (U extends T ? false : true) : never
|
|
|
|
) extends false
|
2021-03-25 15:27:54 +00:00
|
|
|
? false
|
|
|
|
: true
|
2021-11-25 09:52:13 +00:00
|
|
|
|
2022-05-18 23:34:35 +00:00
|
|
|
export type IsAny<T> = 0 extends 1 & T ? true : false
|