docs api: plugin options -> defaultOptions, tweak config schema formatting

This commit is contained in:
Dragory 2019-09-29 15:54:19 +03:00
parent 3ff3bfd5f0
commit 86b1df0a6a
2 changed files with 13 additions and 35 deletions

View file

@ -39,7 +39,7 @@ export const HOURS = 60 * MINUTES;
export const DAYS = 24 * HOURS;
export function tNullable<T extends t.Type<any, any, unknown>>(type: T) {
return t.union([type, t.undefined, t.null], type.name);
return t.union([type, t.undefined, t.null], `Nullable<${type.name}>`);
}
export function dropPropertiesByName(obj, propName) {