Module

Yoga.Fetch.Om.ReadOptional

Package
purescript-yoga-fetch-om
Repository
rowtype-yoga/purescript-yoga-fetch-om

#readOptional Source

readOptional :: forall @name ty r. IsSymbol name => Record r -> Maybe ty

#ReadPartialQuery Source

class ReadPartialQuery :: RowList Type -> Row Type -> Constraintclass ReadPartialQuery (rl :: RowList Type) (queryParams :: Row Type) | rl -> queryParams where

Read query params from a potentially-partial record. Walks the query params RowList: Maybe ty → read with undefined-awareness (present → Just, absent → Nothing) bare ty → read directly (required, always present)

Members

Instances