Type Alias FinderKnowledgeBaseDescription<FindResultType, FullEntityType, SourceType>

FinderKnowledgeBaseDescription: {
    authorityIRI?: string;
    description: string;
    detailRenderer?: (id: string) => React.ReactNode;
    find: (
        searchString: string,
        typeIRI: string,
        typeName: string,
        findOptions?: FindOptions,
    ) => Promise<FindResultType[]>;
    getEntity?: (id: string, typeIRI?: string) => Promise<FullEntityType>;
    icon: string | React.ReactNode;
    id: SourceType;
    label: string;
    listItemRenderer?: (
        entry: FindResultType,
        idx: number,
        typeIRI: string,
        selected: boolean,
        onSelect?: (id: string, index: number) => void,
        onAccept?: (id: string, entry: FindResultType) => void,
    ) => React.ReactNode;
}

Type Parameters

  • FindResultType = any
  • FullEntityType = any
  • SourceType extends string = string

Type declaration

  • OptionalauthorityIRI?: string
  • description: string
  • OptionaldetailRenderer?: (id: string) => React.ReactNode
  • find: (
        searchString: string,
        typeIRI: string,
        typeName: string,
        findOptions?: FindOptions,
    ) => Promise<FindResultType[]>
  • OptionalgetEntity?: (id: string, typeIRI?: string) => Promise<FullEntityType>
  • icon: string | React.ReactNode
  • id: SourceType
  • label: string
  • OptionallistItemRenderer?: (
        entry: FindResultType,
        idx: number,
        typeIRI: string,
        selected: boolean,
        onSelect?: (id: string, index: number) => void,
        onAccept?: (id: string, entry: FindResultType) => void,
    ) => React.ReactNode