Maybe
Add undefined
onto a T
-type. Useful for conciseness in type expressions.
Example
type ProductTitle = string;
type ComponentProps = {
title: Maybe<ProductTitle> // string | undefined
}
Maybe
Add undefined
onto a T
-type. Useful for conciseness in type expressions.
type ProductTitle = string;
type ComponentProps = {
title: Maybe<ProductTitle> // string | undefined
}