We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba53a61 commit dee995eCopy full SHA for dee995e
src/utils/ast.ts
@@ -170,6 +170,9 @@ export function getStaticJSONValue(node: JSONBigIntLiteral): bigint
170
export function getStaticJSONValue(
171
node: JSONLiteral,
172
): string | number | boolean | RegExp | bigint | null
173
+export function getStaticJSONValue(
174
+ node: Exclude<JSONExpression, JSONObjectExpression | JSONArrayExpression>,
175
+): Exclude<JSONValue, JSONObjectValue | JSONValue[]>
176
177
export function getStaticJSONValue(node: JSONObjectExpression): JSONObjectValue
178
export function getStaticJSONValue(node: JSONArrayExpression): JSONValue[]
0 commit comments