Skip to content

Commit

Permalink
Fix TS issues (primefaces#4947)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Sep 23, 2023
1 parent bbc621c commit a4451c1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions components/lib/chip/chip.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/
import * as React from 'react';
import { ComponentHooks } from '../componentbase/componentbase';
import { PassThroughOptions } from '../passthrough';
import { IconType, PassThroughType, TemplateType } from '../utils';

export declare type ChipPassThroughType<T> = PassThroughType<T, ChipPassThroughMethodOptions>;
Expand Down
4 changes: 2 additions & 2 deletions components/lib/galleria/galleria.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ import { CSSTransitionProps } from '../csstransition';
import { PassThroughOptions } from '../passthrough';
import { IconType, PassThroughType } from '../utils/utils';

export declare type GalleriaPassThroughType<T> = PassThroughType<T, GalleriaThroughMethodOptions>;
export declare type GalleriaPassThroughType<T> = PassThroughType<T, GalleriaPassThroughMethodOptions>;
export declare type GalleriaPassThroughTransitionType = ReactCSSTransitionProps | ((options: GalleriaPassThroughMethodOptions) => ReactCSSTransitionProps) | undefined;

/**
* Custom passthrough(pt) option method.
*/
export interface GalleriaThroughMethodOptions {
export interface GalleriaPassThroughMethodOptions {
props: GalleriaProps;
state: GalleriaState;
}
Expand Down
4 changes: 2 additions & 2 deletions components/lib/image/image.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ import { ComponentHooks } from '../componentbase/componentbase';
import { PassThroughOptions } from '../passthrough';
import { IconType, PassThroughType } from '../utils/utils';

export declare type ImagePassThroughType<T> = PassThroughType<T, ImageThroughMethodOptions>;
export declare type ImagePassThroughType<T> = PassThroughType<T, ImagePassThroughMethodOptions>;
export declare type ImagePassThroughTransitionType = ReactCSSTransitionProps | ((options: ImagePassThroughMethodOptions) => ReactCSSTransitionProps) | undefined;

/**
* Custom passthrough(pt) option method.
*/
export interface ImageThroughMethodOptions {
export interface ImagePassThroughMethodOptions {
props: ImageProps;
state: ImageState;
}
Expand Down

0 comments on commit a4451c1

Please sign in to comment.