1 | import { BasePredicate } from '.';
|
2 | import { Predicates } from './predicates';
|
3 | declare type Optionalify<P> = P extends BasePredicate<infer X> ? P & BasePredicate<X | undefined> : P;
|
4 | export interface Modifiers {
|
5 | /**
|
6 | Make the following predicate optional so it doesn't fail when the value is `undefined`.
|
7 | */
|
8 | readonly optional: {
|
9 | [K in keyof Predicates]: Optionalify<Predicates[K]>;
|
10 | };
|
11 | }
|
12 | declare const _default: <T>(object: T) => T & Modifiers;
|
13 | export default _default;
|