-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Reach Schema should come with a sensible default behavior. However, ceratin use cases may want to modify how a schema is applied. Examples of such modifications may be:
- Custom resolver function arguments
- Custom actual data traversal method
Specification
import { createSchemaFunctor } from 'reach-schema'
const applyCustomSchema = createSchemaFunctor({
traverse: (tree, node) => {},
resolver: (value) => {}
})
applyCustomSchema({
data: ({ value }) => value !== 2
}, {
data: 'value'
})
Call signatures to be designed
Metadata
Metadata
Assignees
Labels
No labels