Skip to content

@ralphschuler.parser combinator.index.<internal>

github-actions edited this page Nov 26, 2023 · 1 revision

Module: <internal>

Table of contents

Type Aliases

Type Aliases

Awaited

Ƭ Awaited<T>: T extends null | undefined ? T : T extends object & { then: (onfulfilled: F, ...args: _) => any } ? F extends (value: infer V, ...args: infer _) => any ? Awaited<V> : never : T

Recursively unwraps the "awaited type" of a type. Non-promise "thenables" should resolve to never. This emulates the behavior of await.

Type parameters

Name
T

Defined in

node_modules/typescript/lib/lib.es5.d.ts:1562


ParserFn

Ƭ ParserFn<T>: (_yield: <K>(parser: Parser<K>) => K) => T

Type parameters

Name
T

Type declaration

▸ (_yield): T

Parameters
Name Type
_yield <K>(parser: Parser<K>) => K
Returns

T

Defined in

packages/parser-combinator/src/index.ts:145

Typescript Libraries

Modules

Namespaces

Clone this wiki locally