Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions TYPES.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,6 @@ export type Base64Type = Opaque<string, '__base64__'>;
const DecodeBase64 = (B64String: Base64Type): string => Buffer.from(B64String, 'base64').toString('utf8');
```

## ResolvePromise

Returns the type `T` inside of a `Promise<T>`.

```ts
export type ResolvePromise<T> = T extends PromiseLike<infer R> ? R : never;

/* Usage */
const Result = Promise.resolve(0); // Promise<number>
type TResult = ResolvePromise<typeof Result> //number
```

## ClassType
Represents any class constructor.
```ts
Expand Down