Skip to content

Commit

Permalink
chore(libraries/modules/common): use generics to type for Logger
Browse files Browse the repository at this point in the history
  • Loading branch information
PalmDevs committed Jan 3, 2025
1 parent 7fc5d12 commit 07410ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/modules/src/common/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const intl = findByProps<{
}>('intl')!
export const intlModule = findByProps<typeof import('@discord/intl')>('runtimeHashMessageKey')!

export const Logger = findByName('Logger') as unknown as typeof DiscordModules.Logger
export const Logger = findByName<typeof DiscordModules.Logger, true>('Logger')!

export const alerts = findByProps<DiscordModules.Alerts>('openAlert', 'dismissAlert')!
export const channels = findByProps('getVoiceChannelId')!
Expand Down

0 comments on commit 07410ee

Please sign in to comment.