Skip to content

Commit

Permalink
Minor type enhancements
Browse files Browse the repository at this point in the history
### UPDATED
- Converted plain objects that describe a string typed key to a `Record` instead.
  • Loading branch information
mrjackyliang committed Aug 15, 2024
1 parent dfad324 commit cf272af
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/types/memory.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ export type MemoryEtherscanGasOracle = MemoryEtherscanGasOracleContent | null;
*/
export type MemoryFetchDuplicatesSortedMember = GuildMember;

export type MemoryFetchDuplicatesSortedMembers = {
[avatar: string]: MemoryFetchDuplicatesSortedMember[];
};
export type MemoryFetchDuplicatesSortedMembers = Record<string, MemoryFetchDuplicatesSortedMember[]>;

/**
* Fetch emojis.
Expand Down Expand Up @@ -216,18 +214,14 @@ export type MemoryStocktwitsTrending = MemoryStocktwitsTrendingContent | null;
*
* @since 1.0.0
*/
export type MemorySyncRoles = {
[memberId: string]: ReturnType<typeof setTimeout>;
};
export type MemorySyncRoles = Record<string, ReturnType<typeof setTimeout>>;

/**
* Toggle perms.
*
* @since 1.0.0
*/
export type MemoryTogglePermsSchedules = {
[eventKey: number]: cron.ScheduledTask;
};
export type MemoryTogglePermsSchedules = Record<number, cron.ScheduledTask>;

/**
* Track message.
Expand Down

0 comments on commit cf272af

Please sign in to comment.