Skip to content

Commit

Permalink
small change
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Hedger committed Jan 13, 2019
1 parent e2c1ea8 commit d78e394
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/alert-dialog/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { DialogProps, DialogContentProps } from "@reach/dialog";

declare module "@reach/alert-dialog" {
import { DialogProps, DialogContentProps } from "@reach/dialog";

type AlertDialogProps = {
isOpen: boolean;
onDismiss: () => void;
Expand Down
7 changes: 5 additions & 2 deletions packages/component-component/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ declare module "@reach/component-component" {

type Refs = { [key: string]: React.RefObject<HTMLElement> };

type StateProps = Pick<Args<P, S>, "state" | "props">;
type StateProps = Pick<Args<{}, {}>, "state" | "props">;

export type ComponentProps<P, S> = {
initialState?: S;
Expand All @@ -33,7 +33,10 @@ declare module "@reach/component-component" {
render?(args: Args<P, S>): void;
};

class Component extends React.Component<ComponentProps<P, S>, {}> {}
class Component<
P extends ComponentProps<P, S>,
S = any
> extends React.Component<ComponentProps<P, S>, {}> {}

export default Component;
}

0 comments on commit d78e394

Please sign in to comment.