pdf-to-markdown/core/test/transformer/testItems.ts

6 lines
145 B
TypeScript
Raw Normal View History

2021-02-26 18:04:50 +01:00
import Item from 'src/Item';
export function items(page: number, data: object[]): Item[] {
return data.map((data) => new Item(page, data));
}