Settings

Theme

Show HN: Use TypeScript in Servo Browser Fork

github.com

1 points by singularity2001 5 days ago · 0 comments · 1 min read

Reader

Wasm exports are immediately available to TypeScript, even gc objects!

``` <script type="text/wast"> (module (type $Box (struct (field $val (mut i32)))) (global $box (export "box") (ref $Box) (struct.new $Box (i32.const 42))) ) </script> <script type="text/typescript"> const greeting: string = "Hello from TypeScript and Wasm!"; console.log(greeting, box.val); </script>

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection