Skip to content

Commit

Permalink
fix(ts): type issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jhen0409 committed Mar 26, 2024
1 parent 9b8a378 commit ef2ceb5
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 93 deletions.
12 changes: 4 additions & 8 deletions src/__tests__/__snapshots__/grammar.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`with prop order 1`] = `
"alternative-0 ::= \\"{\\" space (alternative-0-arguments-kv alternative-0-arguments-rest | alternative-0-function-kv )? \\"}\\" space
"alternative-0 ::= \\"{\\" space alternative-0-arguments-kv \\",\\" space alternative-0-function-kv \\"}\\" space
alternative-0-arguments ::= \\"{\\" space (alternative-0-arguments-title-kv alternative-0-arguments-title-rest | alternative-0-arguments-date-kv alternative-0-arguments-date-rest | alternative-0-arguments-time-kv )? \\"}\\" space
alternative-0-arguments-date-kv ::= \\"\\\\\\"date\\\\\\"\\" space \\":\\" space string
alternative-0-arguments-date-rest ::= ( \\",\\" space alternative-0-arguments-time-kv )?
alternative-0-arguments-kv ::= \\"\\\\\\"arguments\\\\\\"\\" space \\":\\" space alternative-0-arguments
alternative-0-arguments-rest ::= ( \\",\\" space alternative-0-function-kv )?
alternative-0-arguments-time-kv ::= \\"\\\\\\"time\\\\\\"\\" space \\":\\" space string
alternative-0-arguments-title-kv ::= \\"\\\\\\"title\\\\\\"\\" space \\":\\" space string
alternative-0-arguments-title-rest ::= ( \\",\\" space alternative-0-arguments-date-kv )? alternative-0-arguments-date-rest
alternative-0-function ::= \\"\\\\\\"create_event\\\\\\"\\"
alternative-0-function-kv ::= \\"\\\\\\"function\\\\\\"\\" space \\":\\" space alternative-0-function
alternative-1 ::= \\"{\\" space (alternative-1-arguments-kv alternative-1-arguments-rest | alternative-1-function-kv )? \\"}\\" space
alternative-1 ::= \\"{\\" space alternative-1-arguments-kv \\",\\" space alternative-1-function-kv \\"}\\" space
alternative-1-arguments ::= \\"{\\" space (alternative-1-arguments-query-kv )? \\"}\\" space
alternative-1-arguments-kv ::= \\"\\\\\\"arguments\\\\\\"\\" space \\":\\" space alternative-1-arguments
alternative-1-arguments-query-kv ::= \\"\\\\\\"query\\\\\\"\\" space \\":\\" space string
alternative-1-arguments-rest ::= ( \\",\\" space alternative-1-function-kv )?
alternative-1-function ::= \\"\\\\\\"image_search\\\\\\"\\"
alternative-1-function-kv ::= \\"\\\\\\"function\\\\\\"\\" space \\":\\" space alternative-1-function
root ::= alternative-0 | alternative-1
Expand All @@ -29,7 +27,7 @@ string ::= \\"\\\\\\"\\" (
`;

exports[`without prop order 1`] = `
"alternative-0 ::= \\"{\\" space (alternative-0-function-kv alternative-0-function-rest | alternative-0-arguments-kv )? \\"}\\" space
"alternative-0 ::= \\"{\\" space alternative-0-function-kv \\",\\" space alternative-0-arguments-kv \\"}\\" space
alternative-0-arguments ::= \\"{\\" space (alternative-0-arguments-title-kv alternative-0-arguments-title-rest | alternative-0-arguments-date-kv alternative-0-arguments-date-rest | alternative-0-arguments-time-kv )? \\"}\\" space
alternative-0-arguments-date-kv ::= \\"\\\\\\"date\\\\\\"\\" space \\":\\" space string
alternative-0-arguments-date-rest ::= ( \\",\\" space alternative-0-arguments-time-kv )?
Expand All @@ -39,14 +37,12 @@ alternative-0-arguments-title-kv ::= \\"\\\\\\"title\\\\\\"\\" space \\":\\" spa
alternative-0-arguments-title-rest ::= ( \\",\\" space alternative-0-arguments-date-kv )? alternative-0-arguments-date-rest
alternative-0-function ::= \\"\\\\\\"create_event\\\\\\"\\"
alternative-0-function-kv ::= \\"\\\\\\"function\\\\\\"\\" space \\":\\" space alternative-0-function
alternative-0-function-rest ::= ( \\",\\" space alternative-0-arguments-kv )?
alternative-1 ::= \\"{\\" space (alternative-1-function-kv alternative-1-function-rest | alternative-1-arguments-kv )? \\"}\\" space
alternative-1 ::= \\"{\\" space alternative-1-function-kv \\",\\" space alternative-1-arguments-kv \\"}\\" space
alternative-1-arguments ::= \\"{\\" space (alternative-1-arguments-query-kv )? \\"}\\" space
alternative-1-arguments-kv ::= \\"\\\\\\"arguments\\\\\\"\\" space \\":\\" space alternative-1-arguments
alternative-1-arguments-query-kv ::= \\"\\\\\\"query\\\\\\"\\" space \\":\\" space string
alternative-1-function ::= \\"\\\\\\"image_search\\\\\\"\\"
alternative-1-function-kv ::= \\"\\\\\\"function\\\\\\"\\" space \\":\\" space alternative-1-function
alternative-1-function-rest ::= ( \\",\\" space alternative-1-arguments-kv )?
root ::= alternative-0 | alternative-1
space ::= \\" \\"?
string ::= \\"\\\\\\"\\" (
Expand Down
Loading

0 comments on commit ef2ceb5

Please sign in to comment.