mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-06 03:50:18 +02:00
fix: correctly extend bluebird
This commit is contained in:
parent
5aeffeab8a
commit
d730d101c2
9 changed files with 58 additions and 66 deletions
|
@ -39,9 +39,7 @@ export type OmitNever<T> = Pick<T, { [K in keyof T]: [T[K]] extends [never] ? ne
|
|||
export type KeysOfType<T, TValue> =
|
||||
{ [TKey in keyof T]: T[TKey] extends TValue ? TKey : never }[keyof T];
|
||||
|
||||
export type ValueOrPromise<T> = T | Promise<T>;
|
||||
|
||||
export type Awaited<T> = T extends Promise<infer R> ? Awaited<R> : T;
|
||||
export type ValueOrPromise<T> = T | PromiseLike<T>;
|
||||
|
||||
/**
|
||||
* Returns a (fake) value of the given type.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue