Skip to content

Commit

Permalink
fix(types): remove restricted type
Browse files Browse the repository at this point in the history
This makes the type frustrating to use when using something computed like `name.length`
  • Loading branch information
dtfiedler committed Sep 26, 2024
1 parent 45022eb commit b1fac75
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/io.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,10 @@ export type EpochInput =

// AO/IO Contract
export type AoBalances = Record<WalletAddress, number>;
const nameLengthArray = [
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22,
23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41,
42, 43, 44, 45, 46, 47, 48, 49, 50, 51,
] as const;
const leaseLengthArray = [1, 2, 3, 4, 5] as const;
export type AoRegistrationFees = Record<
(typeof nameLengthArray)[number],
number,
{
lease: Record<(typeof leaseLengthArray)[number], number>;
lease: Record<number, number>;
permabuy: number;
}
>;
Expand Down

0 comments on commit b1fac75

Please sign in to comment.