MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / isComponentConfig

Function isComponentConfig

static/components.interfaces.ts:474–476  ·  view source on GitHub ↗
(item: ItemConfig)

Source from the content-addressed store, hash-verified

472 * TODO(#7808): Use this for configuration validation in fromGoldenLayoutConfig
473 */
474export function isComponentConfig(item: ItemConfig): item is AnyComponentConfig {
475 return item.type === 'component';
476}
477
478/**
479 * Type guard to check if an item is a layout item (row, column, stack)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected