@pentops/react-table-state-psm
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -6,8 +6,8 @@ import { OnChangeFn, PsmListV1Filter } from './types'; | ||
} | ||
export interface FilterValue<TIdType extends string = string> { | ||
export interface FilterValue<TIdType extends string = string, TValueType extends string = string> { | ||
id: TIdType; | ||
value: { | ||
exact: string; | ||
exact: TValueType; | ||
} | { | ||
in: string[]; | ||
in: TValueType[]; | ||
} | { | ||
@@ -31,4 +31,4 @@ range: RangeFilter; | ||
} | ||
export interface EnumFilterType { | ||
options: EnumFilterOption[]; | ||
export interface EnumFilterType<TValue extends string = string, TLabel = string> { | ||
options: EnumFilterOption<TValue, TLabel>[]; | ||
} | ||
@@ -39,4 +39,4 @@ export interface OneOfFilterOption<TValue extends string = string, TLabel = string> { | ||
} | ||
export interface OneOfFilterType { | ||
options: OneOfFilterOption[]; | ||
export interface OneOfFilterType<TValue extends string = string, TLabel = string> { | ||
options: OneOfFilterOption<TValue, TLabel>[]; | ||
} | ||
@@ -59,8 +59,6 @@ export interface DateFilterType { | ||
}; | ||
export interface BaseTableFilter<TIdType extends string = string, TValueType extends string = string, TLabelType = string, TFilterType extends BaseFilterType = BaseFilterType, TFilterOptions extends object = {}> { | ||
export interface BaseTableFilter<TIdType extends string = string, TLabelType = string, TFilterType extends BaseFilterType = BaseFilterType> { | ||
id: TIdType; | ||
label: TLabelType; | ||
defaultValues?: TValueType[]; | ||
type: TFilterType; | ||
options?: TFilterOptions; | ||
} | ||
@@ -67,0 +65,0 @@ export declare function getPSMQueryFiltersFromTableState<TFilterField extends string = never>(filters: FilterState<TFilterField>): PsmListV1Filter<TFilterField>[] | undefined; |
{ | ||
"name": "@pentops/react-table-state-psm", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22205
338