Skip to content

Commit

Permalink
fix context types
Browse files Browse the repository at this point in the history
  • Loading branch information
clementroche committed Feb 25, 2024
1 parent d68b1c1 commit 2132f0e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/react-lenis/dist/react-lenis.cjs.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/react-lenis/dist/react-lenis.mjs.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/react-lenis/dist/react-lenis.umd.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/react-lenis/dist/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Lenis, { LenisOptions } from '@studio-freight/lenis';
import { ForwardRefExoticComponent, PropsWithoutRef, ReactNode, RefAttributes } from 'react';
export declare const LenisContext: any;
export declare const LenisContext: Lenis | null;
export declare function useLenis(callback: (lenis: Lenis) => void, deps?: Array<any>, priority?: number): Lenis | undefined;
type ForwardRefComponent<P, T> = ForwardRefExoticComponent<PropsWithoutRef<P> & RefAttributes<T>>;
type Props = {
Expand Down
2 changes: 1 addition & 1 deletion packages/react-lenis/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import React, {
} from 'react'
import { create } from 'zustand'

export const LenisContext = createContext() as Lenis | undefined
export const LenisContext = createContext() as Lenis | null

const useRoot = create(() => ({}))

Expand Down

1 comment on commit 2132f0e

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"⚡️ Lighthouse report for the changes in this commit:

🟠 Performance: 65
🟢 Accessibility: 96
🟢 Best practices: 100
🟠 SEO: 67
🔴 PWA: 33

Lighthouse ran on https://lenis-ravaq757l-studio-freight.vercel.app/"

Please sign in to comment.