3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-18 15:45:03 +00:00

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

This commit is contained in:
Dragory 2019-09-29 15:54:19 +03:00
parent 5006ae4962
commit e5204d844b
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) {