Merge additional static/instance methods into a manifest type.
This is used when you define methods separately from the manifest (e.g., in models/*.ts files) and need to combine them.
The conditional checks handle the case where no methods are provided (empty objects) by using unknown to avoid adding empty properties.
unknown
Uses intersection to preserve the original manifest's relations type.
Merge additional static/instance methods into a manifest type.
This is used when you define methods separately from the manifest (e.g., in models/*.ts files) and need to combine them.
The conditional checks handle the case where no methods are provided (empty objects) by using
unknownto avoid adding empty properties.Uses intersection to preserve the original manifest's relations type.