-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add force support #4
Conversation
src/simpleql.ts
Outdated
@@ -150,6 +152,15 @@ class Parser { | |||
} | |||
|
|||
private readType() { | |||
this.skipEmpty(); | |||
const tokFirst = this.pickNext(); | |||
const type: AstTree['type'] = {}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
value 初始可以是空字符串啊
src/simpleql.ts
Outdated
@@ -44,14 +44,15 @@ interface Processor { | |||
* 语法表示从 Member 结构中读取 payerStatus,赋值给 status 属性 | |||
*/ | |||
export interface AstTree { | |||
name: string; | |||
name?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里不要可选吧
@@ -1,6 +1,6 @@ | |||
{ | |||
"name": "simpleql-parse", | |||
"version": "1.2.1", | |||
"version": "1.2.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
history.md 也改下
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
添加force支持,在添加“*”的标识后,添加force属性