Skip to content

Commit

Permalink
✨ expose PusherMocks & co, types
Browse files Browse the repository at this point in the history
  • Loading branch information
Harley Alexander committed Aug 21, 2019
1 parent beac1ff commit b98082c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"typescript"
],
"license": "MIT",
"repository": "@mayteio/use-pusher",
"repository": "https://github.com/mayteio/use-pusher",
"files": [
"dist"
],
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ export { usePresenceChannel } from "./usePresenceChannel";
export { useEvent } from "./useEvent";
export { useTrigger } from "./useTrigger";
export { usePusher } from "./usePusher";
export * from "./mocks";
1 change: 0 additions & 1 deletion src/mocks.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// Based off https://github.com/nikolalsvk/pusher-js-mock

import { Member, Config } from "pusher-js";

class PusherChannelMock {
Expand Down
2 changes: 2 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ export interface PusherProviderProps extends Config {
triggerEndpoint?: string;
defer?: boolean;
children: React.ReactNode;
// for testing purposes
value: any;
}

export interface useChannelOptions {
Expand Down

0 comments on commit b98082c

Please sign in to comment.