Skip to content
This repository was archived by the owner on Feb 1, 2024. It is now read-only.

Commit a1555f5

Browse files
author
Achim Schneider
committed
ts-format
1 parent bc652e6 commit a1555f5

File tree

1 file changed

+23
-13
lines changed

1 file changed

+23
-13
lines changed

output.ts

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,27 @@
11
// AUTO-GENERATED by typescript-type-def
22

33
export default types;
4-
export namespace types{
5-
export type U8=number;
6-
export type CompilationResult=({"type":"SUCCESS";"payload":{"wasm":(types.U8)[];"stdout":string;"stderr":string;};}|{"type":"ERROR";"payload":{"stdout":string;"stderr":string;};});
7-
export type CompilationRequest={"source":string;};
8-
export type TestingRequest={"source":string;};
9-
export type TestingResult=({"type":"SUCCESS";"payload":{"stdout":string;"stderr":string;};}|{"type":"ERROR";"payload":{"stdout":string;"stderr":string;};});
10-
export type FormattingRequest={"source":string;};
11-
export type FormattingResult=({"type":"SUCCESS";"payload":{"source":string;"stderr":string;};}|{"type":"ERROR";"payload":{"stdout":string;"stderr":string;};});
12-
export type Gist={"id":string;"url":string;"code":string;};
13-
export type GistLoadRequest={"id":string;};
14-
export type GistLoadResponse=({"type":"SUCCESS";"payload":types.Gist;}|{"type":"ERROR";"payload":string;});
15-
export type GistCreateRequest={"code":string;};
16-
export type GistCreateResponse=({"type":"SUCCESS";"payload":types.Gist;}|{"type":"ERROR";"payload":string;});
4+
export namespace types {
5+
export type U8 = number;
6+
export type CompilationResult =
7+
| { type: 'SUCCESS'; payload: { wasm: types.U8[]; stdout: string; stderr: string } }
8+
| { type: 'ERROR'; payload: { stdout: string; stderr: string } };
9+
export type CompilationRequest = { source: string };
10+
export type TestingRequest = { source: string };
11+
export type TestingResult =
12+
| { type: 'SUCCESS'; payload: { stdout: string; stderr: string } }
13+
| { type: 'ERROR'; payload: { stdout: string; stderr: string } };
14+
export type FormattingRequest = { source: string };
15+
export type FormattingResult =
16+
| { type: 'SUCCESS'; payload: { source: string; stderr: string } }
17+
| { type: 'ERROR'; payload: { stdout: string; stderr: string } };
18+
export type Gist = { id: string; url: string; code: string };
19+
export type GistLoadRequest = { id: string };
20+
export type GistLoadResponse =
21+
| { type: 'SUCCESS'; payload: types.Gist }
22+
| { type: 'ERROR'; payload: string };
23+
export type GistCreateRequest = { code: string };
24+
export type GistCreateResponse =
25+
| { type: 'SUCCESS'; payload: types.Gist }
26+
| { type: 'ERROR'; payload: string };
1727
}

0 commit comments

Comments
 (0)