MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / lookupMappingKey

Method lookupMappingKey

src/core/FieldMapper.ts:127–129  ·  view source on GitHub ↗

* Look up the FieldMapping key for a given frontmatter property name. * * IMPORTANT: This returns the MAPPING KEY (e.g., "completeInstances"), * NOT the frontmatter property name (e.g., "complete_instances"). * * Use this to check if a property is recognized/mapped, but DO NOT use * the

(frontmatterPropertyName: string)

Source from the content-addressed store, hash-verified

125 * lookupMappingKey("unknown_field") // Returns: null
126 */
127 lookupMappingKey(frontmatterPropertyName: string): keyof FieldMapping | null {
128 return lookupMappingKey(this.mapping, frontmatterPropertyName);
129 }
130
131 /**
132 * Check if a frontmatter property name is a recognized/configured field.

Callers 9

fromUserFieldMethod · 0.95
handleTaskDropMethod · 0.80
handleSortOrderDropMethod · 0.80
getMappedPropertyLabelFunction · 0.80
renderPropertyMetadataFunction · 0.80
getTaskCardPropertyValueFunction · 0.80

Calls 1

lookupMappingKeyFunction · 0.85

Tested by

no test coverage detected