Skip to content

Commit

Permalink
fix: expose proper typing for isTrulyEmpty
Browse files Browse the repository at this point in the history
Better typing will help with inferring the type of the checked value.
  • Loading branch information
benhutchins committed Sep 14, 2023
1 parent 0f18937 commit ae04049
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/truly-empty.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as _ from 'lodash'

export function isTrulyEmpty(value: any): boolean {
export function isTrulyEmpty(value: any): value is undefined | null {
if (typeof value === 'boolean') {
return false
}
Expand Down

0 comments on commit ae04049

Please sign in to comment.