Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/skills / frontmatter / resolveSkillField

Function: resolveSkillField()

ts
function resolveSkillField<T>(
   frontmatter, 
   field, 
fallback?): FieldResolution<T>;

Defined in: packages/skills/src/frontmatter/index.ts:93

Resolve a single field across the four field-resolution tiers. Returns the resolved value plus the source tier the value came from AND the list of conflicting source names so the validator can surface a structured diagnostic.

Type Parameters

Type ParameterDefault type
Tunknown

Parameters

ParameterType
frontmatterRecord&lt;string, unknown&gt;
fieldstring
fallback?T

Returns

FieldResolution&lt;T&gt;

Stable