Skip to content

Commit bde55c7

Browse files
Transactions type refactor (#91)
* Improve type hierarchy for transactions * Support arbitrary keys in the transactions type * Fix transaction tags to be either strings or null * transactions refactor Co-authored-by: ali-sharif <[email protected]>
1 parent 77f496f commit bde55c7

File tree

2 files changed

+107
-900
lines changed

2 files changed

+107
-900
lines changed

types/common.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
import axiosStatic, { AxiosInstance } from "axios"
22

3+
export interface UnimplementedFields {
4+
/**
5+
* Support arbitrary keys (to make this type useful even when it has drifted from the real implementation)
6+
*/
7+
[k: string]: unknown
8+
}
9+
10+
export type Tags = Record<string, string | null>
11+
312
export type Status = "Approved" | "Denied" | "PendingReview"
413

514
export type Title = "CEO" | "COO" | "CFO" | "President" | "BenefitsAdministrationOfficer" | "CIO" | "VP" | "AVP" | "Treasurer" | "Secretary" | "Controller" | "Manager" | "Partner" | "Member"

0 commit comments

Comments
 (0)