Flarum (2.x)
    Preparing search index...

    Interface IExportRegistryInternal

    interface IExportRegistry {
        moduleExports: Map<string, Map<string, any>>;
        onLoads: Map<string, Map<string, Function[]>>;
        add(namespace: string, id: string, object: any): void;
        get(namespace: string, id: string): any;
        onLoad(namespace: string, id: string, handler: Function): void;
    }

    Implemented by

    Index
    moduleExports: Map<string, Map<string, any>>
    onLoads: Map<string, Map<string, Function[]>>
    • Add an instance to the registry. Identified by a namespace (extension ID) and an ID (module path).

      Parameters

      • namespace: string
      • id: string
      • object: any

      Returns void