-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated type definitions to support IDs and multiple outputs
- Loading branch information
lorenzo2897
committed
May 8, 2018
1 parent
4b6f411
commit b03cd9c
Showing
4 changed files
with
21 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,19 @@ | ||
|
||
export class Card { | ||
public collapsed: boolean = false; // not implemented | ||
public codeExpanded: boolean = false; | ||
|
||
constructor( | ||
public id: number, | ||
public title: string, | ||
public sourceCode: string = "", | ||
public interpreterOutput: string = "" | ||
public sourceCode: string, | ||
public outputs: CardOutput[] | ||
) {} | ||
} | ||
|
||
export class CardOutput { | ||
constructor( | ||
public type: string, | ||
public output: string | ||
) {} | ||
} |
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