MCPcopy Create free account
hub / github.com/tinyplex/tinybase / getProps

Function getProps

src/common/solid.ts:14–17  ·  view source on GitHub ↗
(
  getProps: ((...ids: Ids) => Props) | undefined,
  ...ids: Ids
)

Source from the content-addressed store, hash-verified

12 (isFunction(value) ? (value as () => Value)() : value) as Value;
13
14export const getProps = <Props extends {[key: string]: any}>(
15 getProps: ((...ids: Ids) => Props) | undefined,
16 ...ids: Ids
17): Props => (isUndefined(getProps) ? ({} as Props) : getProps(...ids));
18
19export const getRelationshipsStoreTableIds = (
20 relationships: Relationships | undefined,

Callers 1

testStateFunctionsFunction · 0.50

Calls 1

isUndefinedFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…