From e793222ed8d826ac41c2b3e6c1f7e4d117dcd8d5 Mon Sep 17 00:00:00 2001 From: yosuke ota Date: Sat, 15 Aug 2020 06:02:57 +0900 Subject: [PATCH] Add missing type --- package.json | 2 +- src/utils/ast.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index d05ab3a..f18a4a1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jsonc-eslint-parser", - "version": "0.5.0", + "version": "0.5.1", "description": "JSON, JSONC and JSON5 parser for use with ESLint plugins", "main": "lib/index.js", "files": [ diff --git a/src/utils/ast.ts b/src/utils/ast.ts index 0de2296..d4e0bf2 100644 --- a/src/utils/ast.ts +++ b/src/utils/ast.ts @@ -95,6 +95,7 @@ export function getStaticJSONValue(node: JSONArrayExpression): JSONValue[] export function getStaticJSONValue( node: JSONExpression | JSONExpressionStatement, ): JSONValue +export function getStaticJSONValue(node: JSONProgram): JSONValue /* eslint-disable complexity */ /** * Gets the static value for the given node.