MCPcopy Create free account
hub / github.com/Make-md/makemd / propFieldFromString

Function propFieldFromString

src/core/utils/frames/frames.ts:16–18  ·  view source on GitHub ↗
(str: string, schemaProps: SpaceProperty[])

Source from the content-addressed store, hash-verified

14}
15
16export const propFieldFromString = (str: string, schemaProps: SpaceProperty[]) => {
17 return schemaProps.find((f) => str == `${f.schemaId}.props.${f.name}`);
18}
19
20export const nameForField = (field: SpaceProperty) => {
21 if (!field) return null;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected