Skip to content

Commit f1020bb

Browse files
committed
fix: package types
1 parent 499e9ca commit f1020bb

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/useIonicHeaderParallax.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function useIonHeaderParallax({
2626
setTimeout(() => {
2727
initElements()
2828
}, 300)
29-
}, [titleColor, image, expandedColor, maximumHeight, ref])
29+
}, [image, titleColor, expandedColor, maximumHeight, ref])
3030

3131
const initElements = () => {
3232
// ion-header
@@ -206,7 +206,7 @@ export function useIonHeaderParallax({
206206
}
207207
}
208208

209-
209+
210210
return {
211211
ref,
212212
}

types/index.d.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1+
import * as React from "react"
2+
13
export type UseIonHeaderParallaxInput = {
24
image: string
35
expandedColor?: string
46
titleColor?: string
57
maximumHeight?: number
68
}
79

8-
export type UseIonHeaderParallaxResult = void
10+
export type UseIonHeaderParallaxResult = {
11+
ref: React.RefObject<any>
12+
}
913

1014
export function useIonHeaderParallax(input: UseIonHeaderParallaxInput): UseIonHeaderParallaxResult

0 commit comments

Comments
 (0)