Skip to content

@pumpkin-plugins/build API / wit-method-usage/analysis / literalKeys

Function: literalKeys() ​

literalKeys(checker, key): string[] | undefined

Defined in: tools/build/src/wit-method-usage/analysis.ts:54

Returns the string values a computed key can take, or undefined when one of them isn't a string literal.

Parameters ​

checker ​

TypeChecker

key ​

Expression

Returns ​

string[] | undefined

pumpkin-plugins documentation