* 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)
| 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. |
no test coverage detected