@dxos/app-framework - v0.16.0
    Preparing search index...

    Variable matchCandidatesConst

    matchCandidates: (
        definitions: undefined | readonly Definition[],
        role: string,
        data: undefined | Record<string, unknown>,
    ) => Definition[] = matchSurfaceCandidates

    Filters a role's candidate definitions to those whose guard accepts the data.

    Type declaration

      • (
            definitions: undefined | readonly Definition[],
            role: string,
            data: undefined | Record<string, unknown>,
        ): Definition[]
      • Filters the pre-indexed candidates for a role through their data guards.

        Parameters

        • definitions: undefined | readonly Definition[]
        • role: string
        • data: undefined | Record<string, unknown>

        Returns Definition[]