MCPcopy Create free account
hub / github.com/dailydotdev/apps / isText

Function isText

packages/shared/src/features/patchy/patchyConfig.ts:151–152  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

149): value is T => values.includes(value as T);
150
151const isText = (value: unknown): value is string =>
152 typeof value === 'string' && value.length > 0;
153
154const isCount = (value: unknown): value is number =>
155 typeof value === 'number' && Number.isFinite(value) && value >= 0;

Callers 1

toPatchyConfigFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected