Skip to content

Commit

Permalink
Tweak hasDefinedValue typing (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedr0fontoura committed May 9, 2023
1 parent cc82bdf commit ef76953
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@react-facet/core/src/helpers/hasDefinedValue.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { NoValue, NO_VALUE, Value } from '../types'

export const hasDefinedValue = (value: Value | NoValue) => value != null && value !== NO_VALUE
export const hasDefinedValue = (value: Value | NoValue): value is Value => value != null && value !== NO_VALUE

0 comments on commit ef76953

Please sign in to comment.