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