Convenience helper to infer model constructor type from a manifest with additional methods.
This is much cleaner than manually calling InferConstructor<MergeManifestMethods<...>>. Use this in your manifest file to define the model constructor type.
The model manifest
Additional static methods (optional, defaults to no methods)
Additional instance methods (optional, defaults to no methods)
// In models/manifests/review.tsexport type ReviewModel = ManifestModel< typeof reviewManifest, ReviewStaticMethods, ReviewInstanceMethods>; Copy
// In models/manifests/review.tsexport type ReviewModel = ManifestModel< typeof reviewManifest, ReviewStaticMethods, ReviewInstanceMethods>;
Convenience helper to infer model constructor type from a manifest with additional methods.
This is much cleaner than manually calling InferConstructor<MergeManifestMethods<...>>. Use this in your manifest file to define the model constructor type.