-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support expr when use
typescript_custom_section
attribute (#3901)
* feat: support expr when use `typescript_custom_section` attribute * test: update typescript-tests * chore: update "APPROVED_SCHEMA_FILE_HASH" of shared lib * chore: cargo fmt * Apply suggestions from code review include fix typo and adding whitespace to ensure consistent code style. Co-authored-by: Liam Murphy <liampm32@gmail.com> * chore(backend): fix typo * chore(typescript-tests): rename custom_section_type to custom_section_type.d.ts * fix(backend/codegen): change method flat_slices to flat_byte_slices in order to avoid unsafe code * fix(backend/codegen): use dynamic wasm_bindgen path as import entry * chore(typescript-tests): ignore *.d.ts file when test * chore(shared/program): rename CustomSection to LitOrExpr * doc(shared/lib): add doc for program[typescript_custom_sections], explain why there are different types of LitOrExpr when encoding and decoding * chore(shared): update "APPROVED_SCHEMA_FILE_HASH" of shared lib * doc: add docs for method encode_u32_to_fixed_len_bytes * refactor(backend/encode): rename method shared_typescript_custom_section to shared_lit_or_expr * refactor(__rt): extract methods from nested mod directly into `__rt` * chore: cargo fmt * chore(__rt): remove unnecessary TODO * chore(changelog): update change log Support Expressions when using the `typescript_custom_section` attribute[#3901] * Update CHANGELOG.md
- Loading branch information
Showing
14 changed files
with
219 additions
and
40 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
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
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,3 +1,7 @@ | ||
import * as wbg from '../pkg/typescript_tests'; | ||
import * as wbg from "../pkg/typescript_tests" | ||
|
||
const height: wbg.Height = new wbg.Person(); | ||
const height: wbg.Height = new wbg.Person() | ||
|
||
const height1: wbg.Person1 = new wbg.Person() | ||
|
||
const height2: wbg.Person2 = new wbg.Person() |
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,3 @@ | ||
interface Person1 { | ||
height: number | ||
} |
Oops, something went wrong.