UNPKG

@adaptabletools/adaptable

Version:

Powerful AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements

26 lines (25 loc) 1.01 kB
export type ScopeDataType = 'text' | 'number' | 'boolean' | 'date' | 'textArray' | 'numberArray'; /** * Scope data type for modules that only apply to numeric columns (e.g. Shortcut, Plus/Minus). */ export type NumberScopeDataType = 'number'; export type ScopeAll = { All: true; }; export type ScopeDataTypes<Type = ScopeDataType> = { DataTypes: Type[]; }; export type ScopeColumnIds = { ColumnIds: string[]; }; export type ScopeColumnTypes = { ColumnTypes: string[]; }; /** * Defines where a given Object / Module is active */ export type ColumnScope<Type = ScopeDataType> = ScopeAll | ScopeDataTypes<Type> | ScopeColumnIds | ScopeColumnTypes; export declare const isScopeColumnIds: (scope: ColumnScope) => scope is ScopeColumnIds; export declare const isScopeColumnTypes: (scope: ColumnScope) => scope is ScopeColumnTypes; export declare const isScopeDataTypes: (scope: ColumnScope) => scope is ScopeDataTypes; export declare const isScopeAll: (scope: ColumnScope) => scope is ScopeAll;