All files / src Messages.ts

100% Statements 9/9
100% Branches 4/4
100% Functions 4/4
100% Lines 8/8
1 2 3 4 5 6 7 8 9 10 11 12 13 14 1515x 12x     1x 2x     1x 2x     1x 2x  
export const MERGE_ERROR = (offender: string, suggestion: string = ''): string => {
    return `Unknown property "${offender}"` + (suggestion ? `. Did you mean "${suggestion}"?` : '');
};
 
export const TYPE_ERROR_TARGET = (target: any): string => {
    return `[Helpful Merge] Target "${target}" must be a valid object`;
};
 
export const TYPE_ERROR_SOURCE = (source: any): string => {
    return `[Helpful Merge] Source "${source}" must be a valid object`;
};
 
export const INVALID_ARRAY_STRATEGY = (strategy: any): string => {
    return `[Helpful Merge] Invalid array strategy "${strategy}"`;
};