@datasworn/core
Version:
Typings and JSON schema common to Datasworn. This is a pre-release package, provided for developer feedback. It will almost certainly receive breaking changes.
9 lines (8 loc) • 463 B
TypeScript
import type { AnyCollection } from '../Id/Utils.js';
/**
* Mutates `target`.
* @param target The collection object to be enhanced.
* @param source The changes to be applied to `target`
* @param strictOverrides Should enhancements to collections and collectables require a matching `enhances` or `overrides` property? (default: `true`)
*/
export declare function enhanceCollection<T extends AnyCollection>(target: T, source: T, strictOverrides?: boolean): T;