Changelog
0.3.0
This is a breaking change only if you are using fp-ts APIs
Changelog
0.2.2
partial
combinator (makes optional props possible)readonly
combinator (values are not frozen in production)readonlyArray
combinator (values are not frozen in production)never
typemaybe
combinator, can be defined in userland as
export function maybe<RT extends t.Any>(
type: RT,
name?: string
): t.UnionType<[RT, typeof t.null], t.TypeOf<RT> | null> {
return t.union([type, t.null], name)
}
pathReporterFailure
function from default reportersintersection
combinator accepting only InterfaceType
sChangelog
0.1.0
New Feature
Integer
typeBreaking Changes
t.Object
type. Renamed to t.Dictionary
, now accepts arrays so is fully equivalent to { [key: string]: any }
.t.instanceOf
combinator. Removed.t.object
combinator. Renamed to t.interface
. ObjectType
to InterfaceType
. Excess properties are now pruned.mapping
combinator. Renamed to dictionary
. MappingType
to DictionaryType
.intersection
combinator. Due to the new excess property pruning in t.interface
now only accept InterfaceType
s.isSuccess
removed, use either.isRight
insteadisFailure
removed, use either.isLeft
insteadfromValidation
removedChangelog
0.0.2