-
Notifications
You must be signed in to change notification settings - Fork 3
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(multi selector): implement multi selector support #53
base: master
Are you sure you want to change the base?
Conversation
897986c
to
d5dc1f9
Compare
d5dc1f9
to
94d8c59
Compare
94d8c59
to
7b4e699
Compare
return services.find( | ||
service => | ||
service.name === $W && | ||
!Object.prototype.hasOwnProperty.call(service, "memberOf") |
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.
service.hasOwnProperty("memberOf")
|
||
const QUERYABLE_TYPE = "TypeNameToSdkType"; | ||
const $W = "$w"; | ||
const $W_MEMBERS_KEY = "/** $W_NAMESPACE_MEMBERS */"; |
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.
mask with hashtags or similar
const queryableType = getQueryableObjectType(services); | ||
|
||
const page$w = fs.readFileSync("./src_types/pages/$w.d.ts", null, "utf-8"); | ||
let page$w = fs.readFileSync("./src_types/pages/$w.d.ts", "utf-8"); | ||
page$w = page$w.replace($W_MEMBERS_KEY, $wMembers); |
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.
assign to different variables
type OnlyVaildSelectorsChars<S> = | ||
S extends "" | ||
? unknown | ||
: S extends `${VaildSelectorsChars}${infer Tail}` |
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.
make sure selectors are separated with comma, and not every legal char
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.
Button #button1, #button2
==> true
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.
,#button1
==> true
No description provided.