Optional
options: PojoConstructorSyncAndAsyncOptions<Pojo, CtorInput>Optional
Readonly
optionsReadonly
propsOptional
input: CtorInputOptional
options: PojoConstructorSyncAndAsyncOptions<Pojo, CtorInput>Static
createStatic
newOptional
options: PojoConstructorSyncAndAsyncOptions<Pojo, CtorInput>Static
resolveStatic
resolveStatic
resolveStatic
resolveStatic
sasStatic
sasStatic
sasStatic
sasStatic
sasStatic
sasGenerated using TypeDoc
Can operate in both sync mode and async mode.
Constructor methods for each of properties returns an object with either one of
sync
,async
methods or both.All of these are valid:
{ sync, async }
.{ sync }
.{ async }
.Where
async
- returns promise for{ value }
objectsync
- returns{ value }
object synchronouslyIf you only specify
sync
methods, you can use them for "async mode" (callingPojoConstructorSyncAndAsync#new().async()
), but you cannot use "sync mode" (callingPojoConstructorSyncAndAsync#new().sync()
) if you only specifyasync
methods.You can specify
async
methods for some fields and still construct an object in "sync mode" if you also specify acatch
option.catch
will be called each time constructing a property fails, but all properties that do not fail will be added to resulting object.Usage