@adviser/cement - v0.0.0
    Preparing search index...

    Function registerEnvAction

    • Registers a custom environment action factory.

      Allows registration of platform-specific environment implementations. The factory is added to the beginning of the search list and will be tried first when creating new Env instances.

      Parameters

      • fn: EnvFactoryFn

        Factory function that creates EnvActions for a platform

      Returns () => void

      Unregister function to remove the factory

      const unregister = registerEnvAction((opts) => {
      return new CustomEnvActions(opts);
      });

      // Later, remove the factory
      unregister();