Skip to content

Commit

Permalink
fix(hippy-react): fix GenericStyleProp recursive problem
Browse files Browse the repository at this point in the history
  • Loading branch information
tomdyqin authored and zealotchen0 committed Jul 18, 2024
1 parent 634c2f2 commit 987dc29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,8 @@ declare namespace HippyTypes {
[props: string]: any
}
export type Falsy = undefined | null | false;
type RecursiveArray<T> = Array<T | ReadonlyArray<T> | RecursiveArray<T>>;
// eslint-disable-next-line @typescript-eslint/no-empty-interface
interface RecursiveArray<T> extends Array<T | ReadonlyArray<T> | RecursiveArray<T>> {}
export type GenericStyleProp<T> =
| T
| RecursiveArray<T | Falsy>
Expand Down

0 comments on commit 987dc29

Please sign in to comment.