diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/APITypes.d.ts | 11 | ||||
-rw-r--r-- | src/lib/utils.ts | 2 |
2 files changed, 12 insertions, 1 deletions
diff --git a/src/lib/APITypes.d.ts b/src/lib/APITypes.d.ts index 8a4ca76..55f4ade 100644 --- a/src/lib/APITypes.d.ts +++ b/src/lib/APITypes.d.ts @@ -239,3 +239,14 @@ export interface CleanBasicMember { rank: CleanRank left?: boolean } + +export interface Bank { + balance?: number; + history: BankHistoryItem[]; +} +export interface BankHistoryItem { + change: number; + total: number; + timestamp: number; + name: string; +} diff --git a/src/lib/utils.ts b/src/lib/utils.ts index 5dd0fc0..a4803df 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -21,7 +21,7 @@ const specialCodes: { [key: string]: string } = { 'l': 'font-weight: bold' } -const colorCodeCharacter = '§' +export const colorCodeCharacter = '§' export function formattingCodeToHtml(formatted: string): string { let htmlOutput = '' |