MCPcopy Create free account
hub / github.com/eclipsesource/jsonforms / isLabelable

Function isLabelable

packages/core/src/util/uischema.ts:131–132  ·  view source on GitHub ↗
(obj: unknown)

Source from the content-addressed store, hash-verified

129 isScopable(obj) && typeof obj.scope === 'string';
130
131export const isLabelable = (obj: unknown): obj is Labelable =>
132 !!obj && typeof obj === 'object';
133
134export const isLabeled = <T = never>(obj: unknown): obj is Labeled<T> =>
135 isLabelable(obj) && ['string', 'boolean'].includes(typeof obj.label);

Callers 2

mapStateToLayoutPropsFunction · 0.90
isLabeledFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…