MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / isPoint

Function isPoint

packages/client/src/app/uiState.ts:282–289  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

280}
281
282function isPoint(value: unknown): value is Point {
283 return Boolean(
284 value &&
285 typeof value === "object" &&
286 Number.isFinite((value as Point).x) &&
287 Number.isFinite((value as Point).y),
288 );
289}
290
291function isViewMode(value: unknown): value is ViewMode {
292 return value === "center" || value === "fit" || value === "manual";

Callers 1

sanitizeViewportStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected