functional-models 2.1.6 → 2.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/interfaces.d.ts +1 -1
- package/package.json +1 -1
- package/properties.d.ts +1436 -5
- package/properties.js +41 -7
- package/properties.js.map +1 -1
package/README.md
CHANGED
|
@@ -349,7 +349,7 @@ const Greetings = Model<Greeting>('Greetings', {
|
|
|
349
349
|
properties: {
|
|
350
350
|
name: TextProperty(),
|
|
351
351
|
greeting: TextProperty(),
|
|
352
|
-
displayName: DenormalizedProperty<string>("TextProperty", (modelData:
|
|
352
|
+
displayName: DenormalizedProperty<string>("TextProperty", (modelData: Greeting) => {
|
|
353
353
|
return `${modelData.greeting} ${modelData.name}`
|
|
354
354
|
}),
|
|
355
355
|
}
|
package/interfaces.d.ts
CHANGED
|
@@ -143,5 +143,5 @@ declare type OptionalModelOptions<T extends FunctionalModel, TModel extends Mode
|
|
|
143
143
|
instanceCreatedCallback?: Nullable<Arrayable<(instance: TModelInstance) => void>>;
|
|
144
144
|
[s: string]: any;
|
|
145
145
|
}> | undefined;
|
|
146
|
-
declare type CalculateDenormalization<T extends FunctionalValue, TModel extends FunctionalModel> = (modelData:
|
|
146
|
+
declare type CalculateDenormalization<T extends FunctionalValue, TModel extends FunctionalModel> = (modelData: TModel) => MaybePromise<T>;
|
|
147
147
|
export { MaybeFunction, Maybe, MaybePromise, Nullable, Arrayable, MaybeLazy, JsonAble, toObj, ModelInstance, Model, PropertyValidatorComponent, PropertyValidatorComponentSync, PropertyValidatorComponentAsync, PropertyValidator, ModelValidatorComponent, PropertyInstance, PropertyConfig, FunctionalValue, ValueGetter, ModelReference, ModelDefinition, ModelOptions, OptionalModelOptions, ModelReferencePropertyInstance, PropertyGetters, PropertyValidators, PropertyValidatorComponentTypeAdvanced, FunctionalModel, ModelReferenceFunctions, ModelErrors, PrimaryKeyType, ModelFactory, ModelFetcher, CreateParams, ValidatorConfiguration, ValuePropertyValidatorComponent, ValueRequired, ValueOptional, PropertyModifier, ValidationErrors, ModelError, IsAsync, TypedJsonObj, JsonObj, ValueRequiredR, ValueOptionalR, CalculateDenormalization, };
|