type-fest/test-d/promisable.ts
Sindre Sorhus e3234d74aa Use import type
Closes #390
2022-04-09 19:04:14 +07:00

6 lines
175 B
TypeScript

import {expectType} from 'tsd';
import type {Promisable} from '../index';
declare const promisable: Promisable<string>;
expectType<PromiseLike<string> | string>(promisable);