All files / src Config.ts

100% Statements 13/13
100% Branches 0/0
100% Functions 2/2
100% Lines 13/13
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 201x     1x   1x 28x 28x 28x 28x 28x 28x 28x     28x   1x   1x
import ArrayStrategy      from './Constants/ArrayStrategy';
import IConfig            from './Interfaces/IConfig';
import IMergeErrorMessage from './Interfaces/IMergeMessage';
import * as Messages      from './Messages';
 
class Config implements IConfig {
    public deep:                        boolean             = false;
    public useReferenceIfTargetUnset:   boolean             = false;
    public useReferenceIfArray:         boolean             = false;
    public includeReadOnly:             boolean             = false;
    public includeNonEmurable:          boolean             = false;
    public arrayStrategy:               ArrayStrategy       = ArrayStrategy.REPLACE;
    public errorMessage:                IMergeErrorMessage  = Messages.MERGE_ERROR;
 
    constructor() {
        Object.seal(this);
    }
}
 
export default Config;