Function
parseGeneric
(
paramDefs: array<GenericParamDef>,
bodyDef: unknown,
$: BaseScope,
alias?: string
)
Source from the content-addressed store, hash-verified
| 39 | | readonly [name, unknown] |
| 40 | |
| 41 | export const parseGeneric = ( |
| 42 | paramDefs: array<GenericParamDef>, |
| 43 | bodyDef: unknown, |
| 44 | $: BaseScope, |
| 45 | alias?: string |
| 46 | ): GenericRoot => new GenericRoot(paramDefs, bodyDef, $, $, null, alias) |
| 47 | |
| 48 | export type genericParamNames<params extends array<GenericParamAst>> = { |
| 49 | [i in keyof params]: params[i][0] |
Tested by
no test coverage detected