Skip to content

Commit

Permalink
simplify ts def
Browse files Browse the repository at this point in the history
  • Loading branch information
jackyzha0 committed Mar 13, 2022
1 parent 749a2a4 commit 3a8827c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ enum TextMode {
Html = "html",
}
// internal fn to typeguard TextMode
const isTextMode = (e: any): e is TextMode[keyof TextMode] => Object.values(TextMode).includes(e)
const isTextMode = (e: any): e is TextMode => Object.values(TextMode).includes(e)

interface Config {
/**
Expand Down

0 comments on commit 3a8827c

Please sign in to comment.