DefinitelyTyped/types/table-resolver/index.d.ts
2019-11-18 14:24:31 -08:00

10 lines
524 B
TypeScript

// Type definitions for table-resolver 4.1
// Project: https://github.com/reactabular/table-resolver#readme
// Definitions by: Marcos Junior <https://github.com/junalmeida>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export function headerRows<T>(args: { columns: T[] }): T[];
export function nested<T>(args: { column: T }): T;
export function resolve<T>(args: { columns: T[], method: (args: { column: T }) => T }): (data: any) => T[];
export function columnChildren<T>(args: { columns: T[] }): T[];