Skip to content

Commit f460c6f

Browse files
committed
feat: add types to eslint utils getStaticValue
1 parent 587d808 commit f460c6f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

typings/eslint-utils/index.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ export function findVariable(
77
nameOrNode: VAST.Identifier | string
88
): eslint.Scope.Variable
99

10+
export function getStaticValue(
11+
node: VAST.ESNode,
12+
initialScope?: eslint.Scope.Scope
13+
): { value: any } | null
14+
1015
export function isParenthesized(
1116
num: number,
1217
node: VAST.ESNode,

0 commit comments

Comments
 (0)