File tree Expand file tree Collapse file tree 6 files changed +22
-24
lines changed
Expand file tree Collapse file tree 6 files changed +22
-24
lines changed Original file line number Diff line number Diff line change 2828 },
2929 "files" : [
3030 " dist/" ,
31- " src /index.d.ts"
31+ " types /index.d.ts"
3232 ],
3333 "main" : " dist/index.js" ,
34- "types" : " src /index.d.ts" ,
34+ "types" : " types /index.d.ts" ,
3535 "scripts" : {
3636 "build" : " tsc" ,
3737 "test" : " jest" ,
6868 },
6969 "publishConfig" : {
7070 "registry" : " https://registry.npmjs.org"
71- },
72- "dependencies" : {
73- "ionic-react-header-parallax" : " ^0.0.5"
7471 }
7572}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11export { useIonHeaderParallax } from './useIonicHeaderParallax'
2- export type { UseIonHeaderParallaxInputResult , UseIonicHeaderParallaxInput } from './useIonicHeaderParallax'
2+ export type { UseIonHeaderParallaxInputResult , UseIonHeaderParallaxInput } from './useIonicHeaderParallax'
Original file line number Diff line number Diff line change 11import * as React from 'react'
22
3- export type UseIonicHeaderParallaxInput = {
3+ export type UseIonHeaderParallaxInput = {
44 image : string
55 expandedColor : string
66 titleColor : string
@@ -17,7 +17,7 @@ export function useIonHeaderParallax({
1717 image,
1818 expandedColor,
1919 maximumHeight = 300 ,
20- } : UseIonicHeaderParallaxInput ) : UseIonHeaderParallaxInputResult {
20+ } : UseIonHeaderParallaxInput ) : UseIonHeaderParallaxInputResult {
2121 const headerRef = React . useRef < HTMLElement > ( null )
2222
2323 let header : HTMLElement
Original file line number Diff line number Diff line change 6969 // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
7070 // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
7171 },
72- "include" : [" src" ],
72+ "include" : [" src" , " types/index.d.ts " ],
7373 "exclude" : [" node_modules" , " src/**/*.spec.tsx" , " src/**/*.spec.ts" ]
7474}
Original file line number Diff line number Diff line change 1+ export type UseIonHeaderParallaxInput = {
2+ image : string
3+ expandedColor : string
4+ titleColor : string
5+ maximumHeight ?: number
6+ }
7+
8+ export type UseIonHeaderParallaxInputResult = {
9+ ref : React . MutableRefObject < HTMLElement | null >
10+ onScroll : ( ) => void
11+ }
12+
13+
14+ export function useIonHeaderParallax ( input : UseIonHeaderParallaxInput ) : UseIonHeaderParallaxInputResult ;
15+
16+
You can’t perform that action at this time.
0 commit comments