feat: use selector syntax check

This commit is contained in:
lisonge
2023-07-09 23:24:35 +08:00
parent 0f2206bbe4
commit d402a1c96a
9 changed files with 89 additions and 22 deletions

7
src/selector.ts Normal file
View File

@@ -0,0 +1,7 @@
import SelectorKit from '@gkd-kit/selector';
const { CommonSelector } = SelectorKit.li.songe.selector;
export const parseSelector = (source: string) => {
return CommonSelector.Companion.parse(source);
};