Type alias ConstructableModuleWrapper<TWrapper>

ConstructableModuleWrapper<TWrapper>: {
    defaultLogger?: Logger;
    requiredQueries: string[];
    canWrap(module?) => boolean;
    tryWrap<TModuleWrapper>(this, module?, account?) => undefined | TModuleWrapper;
    wrap<TModuleWrapper>(this, module?, account?) => TModuleWrapper;
    new (params): TWrapper;
}

Type Parameters

Type declaration

    • new (params): TWrapper
    • Parameters

      • params: BaseParamsFields & {
            account?: AccountInstance;
            module: TWrappedModule;
        }

      Returns TWrapper

  • Optional defaultLogger?: Logger
  • requiredQueries: string[]
  • canWrap:function
    • Parameters

      • Optional module: Module<ModuleParams<SchemaFields & PayloadFields & {
            archivist?: ArchivistModuleConfig;
            name?: string;
            paging?: Record<string, {
                size?: number;
            }>;
            schema: TConfig extends Payload
                ? TConfig["schema"]
                : ModuleConfigSchema;
            security?: {
                allowAnonymous?: boolean;
                allowed?: Record<SchemaString, (AddressString | CosigningAddressSet)[]>;
                disallowed?: Record<SchemaString, AddressString[]>;
            };
            storeQueries?: boolean;
        } & Omit<Omit<SchemaFields & PayloadFields & {
            archivist?: ArchivistModuleConfig;
            name?: string;
            paging?: Record<string, {
                size?: number;
            }>;
            schema: TConfig extends Payload
                ? TConfig["schema"]
                : ModuleConfigSchema;
            security?: {
                allowAnonymous?: boolean;
                allowed?: Record<SchemaString, (AddressString | CosigningAddressSet)[]>;
                disallowed?: Record<SchemaString, AddressString[]>;
            };
            storeQueries?: boolean;
        } & Omit<undefined, "schema">, "schema"> & {
            schema: string;
        }, "schema">, undefined>, ModuleEventData>

      Returns boolean

  • tryWrap:function
    • Type Parameters

      Parameters

      Returns undefined | TModuleWrapper

  • wrap:function
    • Type Parameters

      Parameters

      Returns TModuleWrapper

Generated using TypeDoc