From 0aa31fe64c0f990a64c3d545728b4894a77da587 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Sun, 19 Mar 2023 14:50:15 +0000 Subject: [PATCH] Fixed #3751 - Api: Typing mismatch --- components/api/Api.d.ts | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/components/api/Api.d.ts b/components/api/Api.d.ts index 9680df74a..c7b1b04a3 100644 --- a/components/api/Api.d.ts +++ b/components/api/Api.d.ts @@ -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;