Fixed #3751 - Api: Typing mismatch

pull/3770/head
mertsincan 2023-03-19 14:50:15 +00:00
parent eb3aae9557
commit 0aa31fe64c
1 changed files with 4 additions and 12 deletions

View File

@ -1,5 +1,5 @@
// Filter
export enum FilterMatchModeOptions {
export const enum FilterMatchMode {
STARTS_WITH = 'startsWith',
CONTAINS = 'contains',
NOT_CONTAINS = 'notContains',
@ -18,15 +18,11 @@ export enum FilterMatchModeOptions {
DATE_AFTER = 'dateAfter'
}
export declare const FilterMatchMode: FilterMatchModeOptions;
export enum FilterOperatorOptions {
export const enum FilterOperator {
AND = 'and',
OR = 'or'
}
export declare const FilterOperator: FilterOperatorOptions;
export declare namespace FilterService {
export function filter(value: any, fields: string[], filterValue: any, filterMatchMode: string, filterLocale?: string): any[];
export interface filters {
@ -51,7 +47,7 @@ export declare namespace FilterService {
}
// Icons
export enum PrimeIconsOptions {
export const enum PrimeIcons {
ALIGN_CENTER = 'pi pi-align-center',
ALIGN_JUSTIFY = 'pi pi-align-justify',
ALIGN_LEFT = 'pi pi-align-left',
@ -312,14 +308,10 @@ export enum PrimeIconsOptions {
YOUTUBE = 'pi pi-youtube'
}
export declare const PrimeIcons: PrimeIconsOptions;
// Severity
export enum ToastSeverityOptions {
export const enum ToastSeverity {
SUCCESS = 'success',
INFO = 'info',
WARN = 'warn',
ERROR = 'error'
}
export declare const ToastSeverity: ToastSeverityOptions;