mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
feat(dx): Improve hinted string types (#5286)
This commit is contained in:
parent
2011f702a3
commit
8f0d3188cd
26 changed files with 60 additions and 58 deletions
8
components/lib/datatable/DataTable.d.ts
vendored
8
components/lib/datatable/DataTable.d.ts
vendored
|
@ -14,7 +14,7 @@ import { ColumnGroupPassThroughOptionType } from '../columngroup';
|
|||
import { PaginatorPassThroughOptionType } from '../paginator';
|
||||
import { PassThroughOptions } from '../passthrough';
|
||||
import { RowPassThroughOptionType } from '../row';
|
||||
import { ClassComponent, GlobalComponentConstructor, Nullable, PassThrough } from '../ts-helpers';
|
||||
import { ClassComponent, GlobalComponentConstructor, Nullable, PassThrough, HintedString } from '../ts-helpers';
|
||||
import { VirtualScrollerPassThroughOptionType, VirtualScrollerProps } from '../virtualscroller';
|
||||
|
||||
export declare type DataTablePassThroughOptionType = DataTablePassThroughAttributes | ((options: DataTablePassThroughMethodOptions) => DataTablePassThroughAttributes | string) | string | null | undefined;
|
||||
|
@ -94,7 +94,7 @@ export interface DataTableFilterMetaData {
|
|||
/**
|
||||
* Filter match mode
|
||||
*/
|
||||
matchMode: 'startsWith' | 'contains' | 'notContains' | 'endsWith' | 'equals' | 'notEquals' | 'in' | 'lt' | 'lte' | 'gt' | 'gte' | 'between' | 'dateIs' | 'dateIsNot' | 'dateBefore' | 'dateAfter' | string | undefined;
|
||||
matchMode: HintedString<'startsWith' | 'contains' | 'notContains' | 'endsWith' | 'equals' | 'notEquals' | 'in' | 'lt' | 'lte' | 'gt' | 'gte' | 'between' | 'dateIs' | 'dateIsNot' | 'dateBefore' | 'dateAfter'> | undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -196,7 +196,7 @@ export interface DataTableSortEvent {
|
|||
/**
|
||||
* Match modes per field
|
||||
*/
|
||||
filterMatchModes: 'startsWith' | 'contains' | 'notContains' | 'endsWith' | 'equals' | 'notEquals' | 'in' | 'lt' | 'lte' | 'gt' | 'gte' | 'between' | 'dateIs' | 'dateIsNot' | 'dateBefore' | 'dateAfter' | string | undefined;
|
||||
filterMatchModes: HintedString<'startsWith' | 'contains' | 'notContains' | 'endsWith' | 'equals' | 'notEquals' | 'in' | 'lt' | 'lte' | 'gt' | 'gte' | 'between' | 'dateIs' | 'dateIsNot' | 'dateBefore' | 'dateAfter'> | undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1080,7 +1080,7 @@ export interface DataTableProps {
|
|||
/**
|
||||
* Height of the scroll viewport in fixed pixels or the 'flex' keyword for a dynamic size.
|
||||
*/
|
||||
scrollHeight?: 'flex' | string | undefined;
|
||||
scrollHeight?: HintedString<'flex'> | undefined;
|
||||
/**
|
||||
* Whether to use the virtualScroller feature. The properties of VirtualScroller component can be used like an object in it.
|
||||
* Note: Currently only vertical orientation mode is supported.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue