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,asyncmethods 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
syncmethods, you can use them for "async mode" (callingPojoConstructorSyncAndAsync#new().async()), but you cannot use "sync mode" (callingPojoConstructorSyncAndAsync#new().sync()) if you only specifyasyncmethods.You can specify
asyncmethods for some fields and still construct an object in "sync mode" if you also specify acatchoption.catchwill be called each time constructing a property fails, but all properties that do not fail will be added to resulting object.Usage