|
1 | 1 | // AUTO-GENERATED by typescript-type-def
|
2 | 2 |
|
3 | 3 | 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 }; |
17 | 27 | }
|
0 commit comments