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 1833bc1 commit 66b64e2Copy full SHA for 66b64e2
src/utils/isValidIdentifier.ts
@@ -1,6 +1,6 @@
1
import { isIdentifierStart, isIdentifierChar } from 'acorn';
2
3
-export default function isValidIdentifier(str) {
+export default function isValidIdentifier(str: string): boolean {
4
if (!isIdentifierStart(str.charCodeAt(0), true)) return false;
5
6
for (let i = 0; i < str.length; i += 1) {
0 commit comments