pdf-to-markdown/core/src/transformer/NoOpTransformer.ts
2021-03-14 12:15:37 +01:00

22 lines
514 B
TypeScript

import Item from '../Item';
import ItemResult from '../ItemResult';
import ItemTransformer from './ItemTransformer';
import TransformContext from './TransformContext';
export default class NoOpTransformer extends ItemTransformer {
constructor() {
super('Does nothing', 'Simply for displaying the results.', {
debug: {
showAll: true,
},
});
}
transform(_: TransformContext, inputItems: Item[]): ItemResult {
return {
items: inputItems,
messages: [],
};
}
}