Skip to content

Home > fff-flavored-frontmatter > FFFOptionalType

FFFOptionalType type

Optional Type Util

Signature:

typescript
type FFFOptionalType<T extends (boolean | undefined), Required, Optional> = T extends undefined ? Optional | Required : T extends true ? Optional : Required;