Closed pedr0fontoura closed 1 year ago
This PR improves the typing of the hasDefinedValue helper, narrowing the facet value type if it has a defined value.
hasDefinedValue
Without this change, the type of the facet value after unwrapping is a union that includes typeof NO_VALUE, which is not assignable to ReactNode.
typeof NO_VALUE
ReactNode
This PR improves the typing of the
hasDefinedValue
helper, narrowing the facet value type if it has a defined value.Without this change, the type of the facet value after unwrapping is a union that includes
typeof NO_VALUE
, which is not assignable toReactNode
.