Partial credit for the library name
leukocytegoes to:
- Add tests
- Add documentation
- infer
optional/nullableprop types no matter where they are in the method chain. Currently, they only work if defined after the type specific methods.- I have tried this:
readonly props: Props & { readonly optional: unknown extends Props[ 'optional' ] ? boolean | undefined : Props[ 'optional' ] readonly nullable: unknown extends Props[ 'nullable' ] ? boolean | undefined : Props[ 'nullable' ] }
- filter out props that are not valid for the baseType