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:
parent
5006ae4962
commit
e5204d844b
2 changed files with 13 additions and 35 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue