Implement named exports (#191)

This commit is contained in:
Bjorn Stromberg 2023-08-07 08:50:03 +08:00 committed by GitHub
parent bd5dfda993
commit 5044c91273
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 1282 additions and 409 deletions

File diff suppressed because it is too large Load diff

View file

@ -62,3 +62,14 @@ export type WeakRef<T extends object> = { // eslint-disable-line @typescript-esl
readonly [Symbol.toStringTag]: 'WeakRef';
deref(): T | undefined;
};
export type ArrayLike<T> = {
readonly [index: number]: T;
readonly length: number;
};
export type NodeStream = {
pipe<T extends NodeJS.WritableStream>(destination: T, options?: {end?: boolean}): T;
} & NodeJS.EventEmitter;
export type Predicate = (value: unknown) => boolean;