Variable matchCandidatesConst
matchCandidates: (
definitions: undefined | readonly Definition[],
role: string,
data: undefined | Record<string, unknown>,
) => Definition[] = matchSurfaceCandidates
Type declaration
- (
definitions: undefined | readonly Definition[],
role: string,
data: undefined | Record<string, unknown>,
): Definition[] Parameters
- definitions: undefined | readonly Definition[]
- role: string
- data: undefined | Record<string, unknown>
Returns Definition[]
Filters a role's candidate definitions to those whose guard accepts the data.