first commit

This commit is contained in:
2025-10-26 23:10:15 +08:00
commit 8f0345b7be
14961 changed files with 2356381 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
import { TSESTree } from '@typescript-eslint/types';
export const getValue = (node) => {
switch (node.type) {
case TSESTree.AST_NODE_TYPES.Identifier: {
return node.name;
}
case TSESTree.AST_NODE_TYPES.Literal: {
return node.value;
}
default: {
throw new Error(`Unsupported node type: ${node.type}`);
}
}
};
//# sourceMappingURL=get-value.js.map