mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-27 08:10:24 +01:00
Update src/prelude/types.ts
Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
This commit is contained in:
parent
2c494f1052
commit
afb7d5d56b
1 changed files with 1 additions and 1 deletions
|
@ -1 +1 @@
|
|||
export type Resolved<P extends Promise<any>> = P extends Promise<infer R> ? R : never;
|
||||
export type Resolved<P> = P extends PromiseLike<infer R> ? Resolved<R> : never;
|
||||
|
|
Loading…
Reference in a new issue