add prelude/types.ts

This commit is contained in:
tamaina 2021-09-12 01:02:56 +09:00
parent a7f5ad78b4
commit beac5d2fb7

1
src/prelude/types.ts Normal file
View file

@ -0,0 +1 @@
export type Resolved<P> = P extends PromiseLike<infer R> ? Resolved<R> : never;