16 lines
670 B
Plaintext
16 lines
670 B
Plaintext
import { ColumnApi } from "../columns/columnApi";
|
|
import { GridApi } from "../gridApi";
|
|
/**
|
|
* Enables types safe create of the given type without the need to set the common grid properties
|
|
* that will be merged with the object in a centralised location.
|
|
*/
|
|
export type WithoutGridCommon<T extends AgGridCommon<any, any>> = Omit<T, keyof AgGridCommon<any, any>>;
|
|
export interface AgGridCommon<TData, TContext> {
|
|
/** The grid api. */
|
|
api: GridApi<TData>;
|
|
/** @deprecated v31 ColumnApi has been deprecated and all methods moved to the api. */
|
|
columnApi: ColumnApi;
|
|
/** Application context as set on `gridOptions.context`. */
|
|
context: TContext;
|
|
}
|