Update src/prelude/types.ts

Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
This commit is contained in:
tamaina 2021-09-07 09:32:33 +09:00 committed by GitHub
parent 2c494f1052
commit afb7d5d56b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;