pdsl
pdsl copied to clipboard
The expressive declarative toolkit for composing predicates in TypeScript or JavaScript
The following should pass but it fails validation: ```js expect( p`"This string \"contains\" 'single quotes'"`( "This string \"contains\" 'single quotes'" ) ).toBe(true); ```
This should throw because there is a missing comma but it doesn't ```js p`{| name: "foo", exact: { hello:"hello" } loose: { hello: "hello", ... } |}`({ name: "foo", exact:...
Validation messages should be able to be calculated using an interpolation function. This was a little technical and not critical to launch the validation feature so spinning it off to...
Possibly take influence from https://github.com/styled-components/vscode-styled-components
https://microsoft.github.io/language-server-protocol/
1. glob srcPath 1. import doczrc extract menu 1. transform each file stripping the top config section append in the order provided by doczrc.menu 1. run the complete file through...
I think the next thing holding back this lib is the lack of automatic typescript support. One way to manage this would be to change the way TypeScript support is...
It could be useful to have a dot syntax for deeply nested objects: ```js const isAdmin = p`{ user.roles: [? "admin" ] }` isAdmin({ user: { roles: [ "editor", "admin"...
> The following are some draft thoughts and do not indicate a well thought through position feel free to think about it but please reserve comments until draft status is...
Converting the grammar to a standard format should help with syntax highlighting