Optional
_experimental_Optional
cacheOptional
input: CtorInputOptional
catch?: ((caught: unknown, options: PojoConstructorOptionsCatchFn) => unknown)Is called when property constructor method throws an error.
Optional
concurrency?: numberOptional
keys?: (() => Extract<keyof Pojo, string>[])A function that produces a list of string property names that should be applied to the Pojo Constructor.
By default, {@link extractMethodKeysForPojoConstructorInstance} function is applied.<br>
It works like this:
- Use Object.getOwnPropertyNames on ctor
- Keep only typeof "function" properties and exclude "constructor" property
- Exclude keys that are not string
- Recur for prototype of ctor
Optional
name?: stringOptional
sortA function that takes property names produces either by keys
function or by default extractMethodKeysForPojoConstructorInstance function
and returns them sorted.
Property names will be processed in this order, unless concurrency
option is set.
By default, property names are sorted lexicographically.
Generated using TypeDoc
Function that should produce a cache key from constructor input. Used by
cachingProxy
to only evaluate property once. Default is identity function -(x) => x