Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Commit

Permalink
refactor: fix some typescript errors
Browse files Browse the repository at this point in the history
  • Loading branch information
owenpearson committed Jul 25, 2023
1 parent ea62765 commit a405fa8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/hooks/useChannel.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Types } from 'ably';
import { useEffect } from 'react';
import { assertConfiguration, ChannelParameters } from '../AblyReactHooks.js';
import { assertConfiguration, ChannelParameters } from '../AblyReactHooks';

export type AblyMessageCallback = (message: Types.Message) => void;
export type ChannelAndClient = [
channel: Types.RealtimeChannelCallbacks,
channel: Types.RealtimeChannelPromise,
message: Types.RealtimePromise,
];

Expand Down
2 changes: 1 addition & 1 deletion src/hooks/usePresence.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Types } from 'ably';
import { useCallback, useEffect, useState } from 'react';
import { assertConfiguration, ChannelParameters } from '../AblyReactHooks.js';
import { assertConfiguration, ChannelParameters } from '../AblyReactHooks';

export type PresenceDataAndPresenceUpdateFunction<T> = [
presenceData: PresenceMessage<T>[],
Expand Down

0 comments on commit a405fa8

Please sign in to comment.