Skip to content
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

Merged
merged 1 commit into from
Jun 23, 2020
Merged

Conversation

mytEcust
Copy link

添加force支持,在添加“*”的标识后,添加force属性

src/simpleql.ts Outdated
@@ -150,6 +152,15 @@ class Parser {
}

private readType() {
this.skipEmpty();
const tokFirst = this.pickNext();
const type: AstTree['type'] = {};
Copy link
Owner

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;
Copy link
Owner

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",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

history.md 也改下

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@shepherdwind shepherdwind merged commit 15c160e into shepherdwind:master Jun 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants