SupportBot 7.3

This commit is contained in:
ItzEmerald committed 2021-10-04 13:54:30 +01:00
1 parent 19a12f6c8f
commit 09f0873f27
4762 files changed
+504608 -52

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
import { BasePredicate } from '.';
import { Predicates } from './predicates';
declare type Optionalify<P> = P extends BasePredicate<infer X> ? P & BasePredicate<X | undefined> : P;
export interface Modifiers {
/**
Make the following predicate optional so it doesn't fail when the value is `undefined`.
*/
readonly optional: {
[K in keyof Predicates]: Optionalify<Predicates[K]>;
};
}
declare const _default: <T>(object: T) => T & Modifiers;
export default _default;