-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix omit and intersection * fix ci * fix bugs * fix omit intersection
- Loading branch information
1 parent
95620e9
commit b1dafa3
Showing
17 changed files
with
97 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
# @beff/cli | ||
|
||
## 0.0.63 | ||
|
||
### Patch Changes | ||
|
||
- fix omit and intersection | ||
|
||
## 0.0.62 | ||
|
||
### Patch Changes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
packages/beff-core/tests/snapshots/print_parser__tests__ok_omit_intersection.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
source: packages/beff-core/tests/print_parser.rs | ||
expression: "ok(r#\"\n export type A = {a: string}\n export type B = {b: string}\n\n export type KABC = Omit<A & B, 'a'>\n \n parse.buildParsers<{ KABC: KABC }>();\n \"#)" | ||
--- | ||
type A = { "a": string }; | ||
type B = { "b": string }; | ||
type KABC = { "b": string }; | ||
type KABC = KABC; |
4 changes: 4 additions & 0 deletions
4
packages/beff-wasm/fixtures/errors/conflict-object-kvs/bff.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"parser": "./src/parser.ts", | ||
"outputDir": "./src/generated" | ||
} |
1 change: 1 addition & 0 deletions
1
packages/beff-wasm/fixtures/errors/conflict-object-kvs/src/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
generated/ |
6 changes: 6 additions & 0 deletions
6
packages/beff-wasm/fixtures/errors/conflict-object-kvs/src/parser.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import parse from "./generated/parser"; | ||
type A = { a: string }; | ||
type A2 = { a: number; b: number }; | ||
type IX3 = A & A2; | ||
|
||
parse.buildParsers<{ IX3: Omit<IX3, "a"> }>(); |
9 changes: 9 additions & 0 deletions
9
packages/beff-wasm/fixtures/errors/conflict-object-kvs/stderr.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Error: Object has conflicting key value in intersection | ||
/errors/conflict-object-kvs/src/parser.ts:6:27 | ||
4 | type IX3 = A & A2; | ||
5 | | ||
> 6 | parse.buildParsers<{ IX3: Omit<IX3, "a"> }>(); | ||
| ^^^^ Object has conflicting key value in intersection | ||
7 | | ||
|
||
Found 1 error |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.