Skip to content

Commit 66b64e2

Browse files
committed
types
1 parent 1833bc1 commit 66b64e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/isValidIdentifier.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { isIdentifierStart, isIdentifierChar } from 'acorn';
22

3-
export default function isValidIdentifier(str) {
3+
export default function isValidIdentifier(str: string): boolean {
44
if (!isIdentifierStart(str.charCodeAt(0), true)) return false;
55

66
for (let i = 0; i < str.length; i += 1) {

0 commit comments

Comments
 (0)