From 5f6f90078c04b00ea72c54a804fbcc493af7ef7d Mon Sep 17 00:00:00 2001 From: Chris Sophos <72870724+That-Guy977@users.noreply.github.com> Date: Tue, 2 Jan 2024 01:54:34 +0700 Subject: [PATCH] [Types] Remove ResolvePromise --- TYPES.md | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/TYPES.md b/TYPES.md index 8504722..e07e46f 100644 --- a/TYPES.md +++ b/TYPES.md @@ -13,18 +13,6 @@ export type Base64Type = Opaque; const DecodeBase64 = (B64String: Base64Type): string => Buffer.from(B64String, 'base64').toString('utf8'); ``` -## ResolvePromise - -Returns the type `T` inside of a `Promise`. - -```ts -export type ResolvePromise = T extends PromiseLike ? R : never; - -/* Usage */ -const Result = Promise.resolve(0); // Promise -type TResult = ResolvePromise //number -``` - ## ClassType Represents any class constructor. ```ts