Feature/docs (#67)

This commit is contained in:
Daniel Lautzenheiser
2022-11-04 17:41:12 -04:00
committed by GitHub
parent 7a1ec55a5c
commit 81ca566b5e
152 changed files with 1862 additions and 3832 deletions

View File

@ -171,7 +171,6 @@ export function registerWidget<T = unknown>(
validator = () => false,
getValidValue = (value: T | undefined | null) => value,
schema,
allowMapValue,
} = {},
} = name;
if (registry.widgets[widgetName]) {
@ -189,7 +188,6 @@ export function registerWidget<T = unknown>(
validator: validator as Widget['validator'],
getValidValue: getValidValue as Widget['getValidValue'],
schema,
allowMapValue,
};
} else {
console.error('`registerWidget` failed, called with incorrect arguments.');
@ -360,6 +358,7 @@ export function getAdditionalLinks(): Record<string, AdditionalLink> {
}
export function getAdditionalLink(id: string): AdditionalLink | undefined {
console.log('additionalLinks', registry.additionalLinks);
return registry.additionalLinks[id];
}