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
const States = { | |
Default: 0, | |
Hungry: 1, | |
Sleepy: 2 | |
} | |
class Baby { | |
currentState = States.Default | |
feedInterval = 0 | |
sleepInterval = 0 |
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
class TastytradeContext { | |
public tastytradeApi: TastytradeApi | |
public customer: Customer | null = null | |
public account: Account | null = null | |
public accountBalance: AccountBalance | null = null | |
constructor(baseUrl: string) { | |
this.tastytradeApi = new TastytradeApi(baseUrl) | |
} | |
} |
OlderNewer