()
| 41 | } |
| 42 | |
| 43 | data(): UsageStatus { |
| 44 | const byModel = this.byModelSnapshot(); |
| 45 | const hasByModel = Object.keys(byModel).length > 0; |
| 46 | const currentTurn = this.currentTurn; |
| 47 | return { |
| 48 | byModel: hasByModel ? byModel : undefined, |
| 49 | total: hasByModel ? totalUsage(byModel) : undefined, |
| 50 | currentTurn: currentTurn === undefined ? undefined : copyUsage(currentTurn), |
| 51 | }; |
| 52 | } |
| 53 | |
| 54 | status(): UsageStatus | undefined { |
| 55 | const status = this.data(); |
no test coverage detected