11 lines
448 B
TypeScript
11 lines
448 B
TypeScript
import { TranslationCollection } from '../utils/translation.collection';
|
|
import { PostProcessorInterface } from './post-processor.interface';
|
|
|
|
export class PurgeObsoleteKeysPostProcessor implements PostProcessorInterface {
|
|
public name: string = 'PurgeObsoleteKeys';
|
|
|
|
public process(draft: TranslationCollection, extracted: TranslationCollection, existing: TranslationCollection): TranslationCollection {
|
|
return draft.intersect(extracted);
|
|
}
|
|
}
|