Skip to content

Commit

Permalink
fix typescript error
Browse files Browse the repository at this point in the history
  • Loading branch information
storywithoutend committed Sep 20, 2023
1 parent 130513b commit 8bc1a27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/supportLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ const SUPPORT_LINKS = {

type SupportTopic = keyof typeof SUPPORT_LINKS

export const getSupportLink = (topic: SupportTopic) => SUPPORT_LINKS[topic]
export const getSupportLink = <T extends SupportTopic>(topic: T): typeof SUPPORT_LINKS[T] =>
SUPPORT_LINKS[topic]

0 comments on commit 8bc1a27

Please sign in to comment.