MCPcopy Create free account
hub / github.com/bvaughn/react-window / isDynamicRowHeight

Function isDynamicRowHeight

lib/components/list/isDynamicRowHeight.ts:3–10  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

1import type { DynamicRowHeight } from "./types";
2
3export function isDynamicRowHeight(value: unknown): value is DynamicRowHeight {
4 return (
5 value != null &&
6 typeof value === "object" &&
7 "getAverageRowHeight" in value &&
8 typeof value.getAverageRowHeight === "function"
9 );
10}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected