( name: string, fill: SlotFillEntry
, ): () => void { return register(`slot:${name}`, fill); } /** * Remove a fill from a named slot. * * @param name The slot name. * @param id The fill's id. * @return Whether anything was removed. */ export function unregisterSlotFill(name: string, id: string): boolean { return unregister(`slot:${name}`, id); } /** * The fills of a named slot, in order. * * @param name The slot name. * @return The ordered fills. */ export function getSlotFills
(
name: string,
): ReadonlyArray