Skip to content

isCliToolEntry

isCliToolEntry<T>(entry): entry is T & CliToolNodeEntryDto

Type guard: is this the cli-tool action, carrying a CLI-tool descriptor? Generic over the input so it narrows subtypes (e.g. the Hub’s NodeCatalogEntryWithStatusDto) without dropping their extra fields.

T extends NodeCatalogEntryDto

T

entry is T & CliToolNodeEntryDto