Functioncorev0.4.1Decorator
AutocompleteRoute
Routes one or more commands' autocomplete to an AutocompleteHandler.
Pass the same command route string(s) as the handler's generic. One command branches with this.match over its autocompletable fields, several commands share one handler whose arms span every command's fields. Listing fewer or more commands than the handler declares is a compile error, since the decorator routes and the generic must match exactly.
AutocompleteRoute<Route>(
routes: Route[]
): <TCtor extends AnyHandlerCtor>(
constructor: AssertAutocompleteRoute<Route, TCtor>
) => voidRoute
Routeroutes
routes: Route[]The command route string(s) this handler serves, e.g. 'search' or 'search', 'find'.