File tree 3 files changed +19
-18
lines changed
3 files changed +19
-18
lines changed Original file line number Diff line number Diff line change @@ -3,27 +3,11 @@ import "allocator/arena";
3
3
// These imports need to be copied properly
4
4
import { near } from "./near"
5
5
import { near as bazinga_near } from "./near"
6
+ import { FooBar , ContainerClass , AnotherContainerClass } from "./model_near" ;
6
7
7
8
@external ( "env" , "log" )
8
9
declare function log ( str : string ) : void ;
9
10
10
- export class FooBar {
11
- foo : i32 = 0 ;
12
- bar : i32 = 1 ;
13
- flag : bool ;
14
- baz : string = "123" ;
15
- //foobar: Uint8Array;
16
- arr : Array < Array < string > > ;
17
- }
18
-
19
- export class ContainerClass {
20
- foobar : FooBar
21
- }
22
-
23
- export class AnotherContainerClass {
24
- foobar : FooBar
25
- }
26
-
27
11
export function doNothing ( ) : void {
28
12
29
13
}
Original file line number Diff line number Diff line change
1
+ export class FooBar {
2
+ foo : i32 = 0 ;
3
+ bar : i32 = 1 ;
4
+ flag : bool ;
5
+ baz : string = "123" ;
6
+ //foobar: Uint8Array;
7
+ arr : Array < Array < string > > ;
8
+ }
9
+
10
+ export class ContainerClass {
11
+ foobar : FooBar
12
+ }
13
+
14
+ export class AnotherContainerClass {
15
+ foobar : FooBar
16
+ }
Original file line number Diff line number Diff line change 2
2
set -e
3
3
set -x
4
4
BASEDIR=../..
5
- $BASEDIR /bin/asc main.ts --outFile main.wat --nearFile main_near.ts
5
+ $BASEDIR /bin/asc model.ts --nearFile model_near.ts
6
+ $BASEDIR /bin/asc main.ts --nearFile main_near.ts
6
7
$BASEDIR /bin/asc main_near.ts -o main_near.wat
7
8
$BASEDIR /bin/asc test.ts -o test.wasm --textFile test.wat
8
9
prettier --parser typescript --write main_near.ts
You can’t perform that action at this time.
0 commit comments