Skip to content

Commit

Permalink
Merge pull request #27 from faceless-ui/fix/types
Browse files Browse the repository at this point in the history
Fix/types
  • Loading branch information
jacobsfletch authored Sep 3, 2022
2 parents fd89f6a + da4a868 commit d4b9b38
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@faceless-ui/window-info",
"version": "2.1.0",
"version": "2.1.1",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"homepage:": "https://facelessui.com/docs/window-info",
Expand Down
11 changes: 8 additions & 3 deletions src/WindowInfoProvider/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React, { useCallback, useEffect, useReducer, useRef } from 'react';
import { Breakpoints } from '../types';
import WindowInfoContext, { IWindowInfoContext } from '../WindowInfoProvider/context';

type AnimationRef = React.MutableRefObject<number | null>;
Expand Down Expand Up @@ -69,10 +68,16 @@ const reducer = (
return newState;
};

const WindowInfoProvider: React.FC<{
export type Breakpoints = {
[key: string]: string
}

export type WindowInfoProviderProps = {
breakpoints: Breakpoints
children?: React.ReactNode
}> = (props) => {
}

const WindowInfoProvider: React.FC<WindowInfoProviderProps> = (props) => {
const {
breakpoints,
children,
Expand Down

0 comments on commit d4b9b38

Please sign in to comment.