tlojs
Version:
The Last One - The last npm package you'll need to install
15 lines (13 loc) • 364 B
text/typescript
import { TableCell } from "./cell";
import '../array/linq'
import { TablePlugin } from "./table-plugin";
import { Type } from "../types/type";
export class TableQueryResults {
constructor(
public cells: TableCell<unknown>[]
) { }
exec<T>(plugin: Type<TablePlugin<T>>): T {
const instance = new plugin()
return instance.execute(this.cells)
}
}