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.
Factory function that creates EnvActions for a platform
Unregister function to remove the factory
const unregister = registerEnvAction((opts) => { return new CustomEnvActions(opts);});// Later, remove the factoryunregister(); Copy
const unregister = registerEnvAction((opts) => { return new CustomEnvActions(opts);});// Later, remove the factoryunregister();
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.