XYO Platform SDK - v3.10.6
    Preparing search index...

    Variable asAttachableModuleInstanceConst

    asAttachableModuleInstance: {
        <
            TType extends
                AttachableModuleInstance<
                    BaseParamsFields & {
                        account?: AccountInstance
                        | "random";
                        additionalSigners?: AccountInstance[];
                        addToResolvers?: boolean;
                        allowNameResolution?: boolean;
                        config: AnyConfigSchema<ModuleConfig>;
                        ephemeralQueryAccountEnabled?: boolean;
                        moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
                        privateChildren?: ModuleInstance<
                            (
                                BaseParamsFields & { account?: AccountInstance | "random" | undefined; addToResolvers?: boolean | undefined; additionalSigners?: AccountInstance[] | undefined; ... 5 more ...; publicChildren?: ModuleInstance<...>[] | undefined; }
                            ),
                            ModuleEventData<object>,
                        >[];
                        publicChildren?: ModuleInstance<
                            (
                                BaseParamsFields & { account?: AccountInstance | "random" | undefined; addToResolvers?: boolean | undefined; additionalSigners?: AccountInstance[] | undefined; ... 5 more ...; publicChildren?: ModuleInstance<...>[] | undefined; }
                            ),
                            ModuleEventData<object>,
                        >[];
                    },
                    ModuleEventData<object>,
                >,
        >(
            value: AnyNonPromise,
            config?: TypeCheckConfig,
        ): undefined | TType;
        <
            TType extends
                AttachableModuleInstance<
                    BaseParamsFields & {
                        account?: AccountInstance
                        | "random";
                        additionalSigners?: AccountInstance[];
                        addToResolvers?: boolean;
                        allowNameResolution?: boolean;
                        config: AnyConfigSchema<ModuleConfig>;
                        ephemeralQueryAccountEnabled?: boolean;
                        moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
                        privateChildren?: ModuleInstance<
                            (
                                BaseParamsFields & { account?: AccountInstance | "random" | undefined; addToResolvers?: boolean | undefined; additionalSigners?: AccountInstance[] | undefined; ... 5 more ...; publicChildren?: ModuleInstance<...>[] | undefined; }
                            ),
                            ModuleEventData<object>,
                        >[];
                        publicChildren?: ModuleInstance<
                            (
                                BaseParamsFields & { account?: AccountInstance | "random" | undefined; addToResolvers?: boolean | undefined; additionalSigners?: AccountInstance[] | undefined; ... 5 more ...; publicChildren?: ModuleInstance<...>[] | undefined; }
                            ),
                            ModuleEventData<object>,
                        >[];
                    },
                    ModuleEventData<object>,
                >,
        >(
            value: AnyNonPromise,
            assert: StringOrAlertFunction<
                AttachableModuleInstance<
                    BaseParamsFields & {
                        account?: AccountInstance
                        | "random";
                        additionalSigners?: AccountInstance[];
                        addToResolvers?: boolean;
                        allowNameResolution?: boolean;
                        config: AnyConfigSchema<ModuleConfig>;
                        ephemeralQueryAccountEnabled?: boolean;
                        moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
                        privateChildren?: ModuleInstance<
                            (
                                BaseParamsFields & { account?: AccountInstance | "random" | undefined; addToResolvers?: boolean | undefined; additionalSigners?: AccountInstance[] | undefined; ... 5 more ...; publicChildren?: ModuleInstance<...>[] | undefined; }
                            ),
                            ModuleEventData<object>,
                        >[];
                        publicChildren?: ModuleInstance<
                            (
                                BaseParamsFields & { account?: AccountInstance | "random" | undefined; addToResolvers?: boolean | undefined; additionalSigners?: AccountInstance[] | undefined; ... 5 more ...; publicChildren?: ModuleInstance<...>[] | undefined; }
                            ),
                            ModuleEventData<object>,
                        >[];
                    },
                    ModuleEventData<object>,
                >,
            >,
            config?: TypeCheckConfig,
        ): TType;
    } = ...

    Type declaration

      • <
            TType extends
                AttachableModuleInstance<
                    BaseParamsFields & {
                        account?: AccountInstance
                        | "random";
                        additionalSigners?: AccountInstance[];
                        addToResolvers?: boolean;
                        allowNameResolution?: boolean;
                        config: AnyConfigSchema<ModuleConfig>;
                        ephemeralQueryAccountEnabled?: boolean;
                        moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
                        privateChildren?: ModuleInstance<
                            (
                                BaseParamsFields & { account?: AccountInstance | "random" | undefined; addToResolvers?: boolean | undefined; additionalSigners?: AccountInstance[] | undefined; ... 5 more ...; publicChildren?: ModuleInstance<...>[] | undefined; }
                            ),
                            ModuleEventData<object>,
                        >[];
                        publicChildren?: ModuleInstance<
                            (
                                BaseParamsFields & { account?: AccountInstance | "random" | undefined; addToResolvers?: boolean | undefined; additionalSigners?: AccountInstance[] | undefined; ... 5 more ...; publicChildren?: ModuleInstance<...>[] | undefined; }
                            ),
                            ModuleEventData<object>,
                        >[];
                    },
                    ModuleEventData<object>,
                >,
        >(
            value: AnyNonPromise,
            config?: TypeCheckConfig,
        ): undefined | TType
      • Type Parameters

        • TType extends AttachableModuleInstance<
              BaseParamsFields & {
                  account?: AccountInstance
                  | "random";
                  additionalSigners?: AccountInstance[];
                  addToResolvers?: boolean;
                  allowNameResolution?: boolean;
                  config: AnyConfigSchema<ModuleConfig>;
                  ephemeralQueryAccountEnabled?: boolean;
                  moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
                  privateChildren?: ModuleInstance<
                      (
                          BaseParamsFields & { account?: AccountInstance | "random" | undefined; addToResolvers?: boolean | undefined; additionalSigners?: AccountInstance[] | undefined; ... 5 more ...; publicChildren?: ModuleInstance<...>[] | undefined; }
                      ),
                      ModuleEventData<object>,
                  >[];
                  publicChildren?: ModuleInstance<
                      (
                          BaseParamsFields & { account?: AccountInstance | "random" | undefined; addToResolvers?: boolean | undefined; additionalSigners?: AccountInstance[] | undefined; ... 5 more ...; publicChildren?: ModuleInstance<...>[] | undefined; }
                      ),
                      ModuleEventData<object>,
                  >[];
              },
              ModuleEventData<object>,
          >

        Parameters

        Returns undefined | TType

      • <
            TType extends
                AttachableModuleInstance<
                    BaseParamsFields & {
                        account?: AccountInstance
                        | "random";
                        additionalSigners?: AccountInstance[];
                        addToResolvers?: boolean;
                        allowNameResolution?: boolean;
                        config: AnyConfigSchema<ModuleConfig>;
                        ephemeralQueryAccountEnabled?: boolean;
                        moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
                        privateChildren?: ModuleInstance<
                            (
                                BaseParamsFields & { account?: AccountInstance | "random" | undefined; addToResolvers?: boolean | undefined; additionalSigners?: AccountInstance[] | undefined; ... 5 more ...; publicChildren?: ModuleInstance<...>[] | undefined; }
                            ),
                            ModuleEventData<object>,
                        >[];
                        publicChildren?: ModuleInstance<
                            (
                                BaseParamsFields & { account?: AccountInstance | "random" | undefined; addToResolvers?: boolean | undefined; additionalSigners?: AccountInstance[] | undefined; ... 5 more ...; publicChildren?: ModuleInstance<...>[] | undefined; }
                            ),
                            ModuleEventData<object>,
                        >[];
                    },
                    ModuleEventData<object>,
                >,
        >(
            value: AnyNonPromise,
            assert: StringOrAlertFunction<
                AttachableModuleInstance<
                    BaseParamsFields & {
                        account?: AccountInstance
                        | "random";
                        additionalSigners?: AccountInstance[];
                        addToResolvers?: boolean;
                        allowNameResolution?: boolean;
                        config: AnyConfigSchema<ModuleConfig>;
                        ephemeralQueryAccountEnabled?: boolean;
                        moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
                        privateChildren?: ModuleInstance<
                            (
                                BaseParamsFields & { account?: AccountInstance | "random" | undefined; addToResolvers?: boolean | undefined; additionalSigners?: AccountInstance[] | undefined; ... 5 more ...; publicChildren?: ModuleInstance<...>[] | undefined; }
                            ),
                            ModuleEventData<object>,
                        >[];
                        publicChildren?: ModuleInstance<
                            (
                                BaseParamsFields & { account?: AccountInstance | "random" | undefined; addToResolvers?: boolean | undefined; additionalSigners?: AccountInstance[] | undefined; ... 5 more ...; publicChildren?: ModuleInstance<...>[] | undefined; }
                            ),
                            ModuleEventData<object>,
                        >[];
                    },
                    ModuleEventData<object>,
                >,
            >,
            config?: TypeCheckConfig,
        ): TType
      • Type Parameters

        • TType extends AttachableModuleInstance<
              BaseParamsFields & {
                  account?: AccountInstance
                  | "random";
                  additionalSigners?: AccountInstance[];
                  addToResolvers?: boolean;
                  allowNameResolution?: boolean;
                  config: AnyConfigSchema<ModuleConfig>;
                  ephemeralQueryAccountEnabled?: boolean;
                  moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
                  privateChildren?: ModuleInstance<
                      (
                          BaseParamsFields & { account?: AccountInstance | "random" | undefined; addToResolvers?: boolean | undefined; additionalSigners?: AccountInstance[] | undefined; ... 5 more ...; publicChildren?: ModuleInstance<...>[] | undefined; }
                      ),
                      ModuleEventData<object>,
                  >[];
                  publicChildren?: ModuleInstance<
                      (
                          BaseParamsFields & { account?: AccountInstance | "random" | undefined; addToResolvers?: boolean | undefined; additionalSigners?: AccountInstance[] | undefined; ... 5 more ...; publicChildren?: ModuleInstance<...>[] | undefined; }
                      ),
                      ModuleEventData<object>,
                  >[];
              },
              ModuleEventData<object>,
          >

        Parameters

        • value: AnyNonPromise
        • assert: StringOrAlertFunction<
              AttachableModuleInstance<
                  BaseParamsFields & {
                      account?: AccountInstance
                      | "random";
                      additionalSigners?: AccountInstance[];
                      addToResolvers?: boolean;
                      allowNameResolution?: boolean;
                      config: AnyConfigSchema<ModuleConfig>;
                      ephemeralQueryAccountEnabled?: boolean;
                      moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
                      privateChildren?: ModuleInstance<
                          (
                              BaseParamsFields & { account?: AccountInstance | "random" | undefined; addToResolvers?: boolean | undefined; additionalSigners?: AccountInstance[] | undefined; ... 5 more ...; publicChildren?: ModuleInstance<...>[] | undefined; }
                          ),
                          ModuleEventData<object>,
                      >[];
                      publicChildren?: ModuleInstance<
                          (
                              BaseParamsFields & { account?: AccountInstance | "random" | undefined; addToResolvers?: boolean | undefined; additionalSigners?: AccountInstance[] | undefined; ... 5 more ...; publicChildren?: ModuleInstance<...>[] | undefined; }
                          ),
                          ModuleEventData<object>,
                      >[];
                  },
                  ModuleEventData<object>,
              >,
          >
        • Optionalconfig: TypeCheckConfig

        Returns TType