Skip to content

apollo-code


apollo-code / ui/src / MutableSlashCommandRegistry

Class: MutableSlashCommandRegistry

Implements

Constructors

Constructor

new MutableSlashCommandRegistry(): MutableSlashCommandRegistry

Returns

MutableSlashCommandRegistry

Methods

register()

register(command, source): () => void

Parameters

command

SlashCommand

source

SlashCommandSource

Returns

() => void


snapshot()

snapshot(): readonly RegisteredSlashCommand[]

Returns

readonly RegisteredSlashCommand[]

Implementation of

SlashCommandRegistry.snapshot


subscribe()

subscribe(listener): () => void

Parameters

listener

() => void

Returns

() => void

Implementation of

SlashCommandRegistry.subscribe