functional-models 1.1.10 → 1.1.11
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/interfaces.d.ts +1 -1
- package/package.json +1 -1
package/interfaces.d.ts
CHANGED
|
@@ -87,7 +87,7 @@ declare type PropertyConfigContents = {
|
|
|
87
87
|
readonly autoNow?: boolean;
|
|
88
88
|
readonly fetcher?: ModelFetcher;
|
|
89
89
|
};
|
|
90
|
-
declare type ModelFetcher = <T extends FunctionalModel>(model: Model<T>, primaryKey: PrimaryKeyType) => Promise<ModelInstance<T> | ModelInstanceInputData<T
|
|
90
|
+
declare type ModelFetcher = <T extends FunctionalModel>(model: Model<T>, primaryKey: PrimaryKeyType) => Promise<Maybe<ModelInstance<T> | ModelInstanceInputData<T>>>;
|
|
91
91
|
declare type PropertyConfig = (PropertyConfigContents & DefaultPropertyValidators) | undefined;
|
|
92
92
|
declare type PrimaryKeyPropertyInstanceType = PropertyInstance<string> | PropertyInstance<number>;
|
|
93
93
|
declare type PrimaryKeyType = string | number;
|