Type Parameters

Constructors

Properties

_updating: boolean = false
byFrom: {
    [id: Id]: L[];
} = {}

Type declaration

byId: {
    [id: Id]: L;
} = {}

Type declaration

byTo: {
    [id: Id]: L[];
} = {}

Type declaration

byType: {
    [id: Id]: L[];
} = {}

Type declaration

emitter: EventEmitter
links: L[] = []
options: MGO
types: {
    [id: Id]: L[];
} = {}

Type declaration

useMinilinksApply: (<L>(ml, name, data?) => any) = useMinilinksApply

Type declaration

    • <L>(ml, name, data?): any
    • Type Parameters

      Parameters

      • ml: any
      • name: string
      • Optional data: L[]

      Returns any

useMinilinksFilter: (<L, R>(ml, filter, results, interval?) => R) = useMinilinksFilter

Type declaration

    • <L, R>(ml, filter, results, interval?): R
    • Type Parameters

      Parameters

      • ml: any
      • filter: ((currentLink, oldLink, newLink) => boolean)
          • (currentLink, oldLink, newLink): boolean
          • Parameters

            • currentLink: L
            • oldLink: L
            • newLink: L

            Returns boolean

      • results: ((l?, ml?, oldLink?, newLink?) => R)
          • (l?, ml?, oldLink?, newLink?): R
          • Parameters

            • Optional l: L
            • Optional ml: any
            • Optional oldLink: L
            • Optional newLink: L

            Returns R

      • Optional interval: number

      Returns R

useMinilinksHandle: (<L>(ml, handler) => void) = useMinilinksHandle

Type declaration

    • <L>(ml, handler): void
    • Type Parameters

      Parameters

      • ml: any
      • handler: ((event, oldLink, newLink) => any)
          • (event, oldLink, newLink): any
          • Parameters

            • event: any
            • oldLink: any
            • newLink: any

            Returns any

      Returns void

useMinilinksQuery: (<L>(ml, query) => any) = useMinilinksQuery

Type declaration

    • <L>(ml, query): any
    • React hook. Returns reactiviely links from minilinks, by query in deeplinks dialect. Recalculates when query changes. (Take query into useMemo!).

      Type Parameters

      Parameters

      Returns any

useMinilinksSubscription: (<L>(ml, query) => any) = useMinilinksSubscription

Type declaration

    • <L>(ml, query): any
    • React hook. Returns reactiviely links from minilinks, by query in deeplinks dialect. Recalculates when data in minilinks changes. (Take query into useMemo!).

      Type Parameters

      Parameters

      Returns any

Methods

Generated using TypeDoc