Wrap a value to store it as-is, bypassing factory detection. Use when the resource itself is a function or class that should not be invoked.
import { directValue } from 'ecspresso';world.addResource('handler', directValue(myFunction));world.addResource('MyClass', directValue(MyClass)); Copy
import { directValue } from 'ecspresso';world.addResource('handler', directValue(myFunction));world.addResource('MyClass', directValue(MyClass));
Wrap a value to store it as-is, bypassing factory detection. Use when the resource itself is a function or class that should not be invoked.