From 5f335749169318f12c9d4db22c9c90c48c5fe349 Mon Sep 17 00:00:00 2001 From: Sravan S Date: Tue, 24 May 2022 16:01:38 +0900 Subject: [PATCH] fix: type defn for useChannelList --- scripts/index_d_ts | 1 + src/index.d.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/scripts/index_d_ts b/scripts/index_d_ts index c36489d99..5eecb2d07 100644 --- a/scripts/index_d_ts +++ b/scripts/index_d_ts @@ -480,6 +480,7 @@ declare module '@sendbird/uikit-react/ChannelList' { declare module '@sendbird/uikit-react/ChannelList/context' { export const ChannelListProvider: React.FunctionComponent; export function useChannelListContext (): ChannelListProviderInterface; + export function useChannelList (): ChannelListProviderInterface; } declare module '@sendbird/uikit-react/ChannelList/components/AddChannel' { diff --git a/src/index.d.ts b/src/index.d.ts index 6bb67fb8b..41dcccf33 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -497,6 +497,7 @@ declare module '@sendbird/uikit-react/ChannelList' { declare module '@sendbird/uikit-react/ChannelList/context' { export type ChannelListProvider = React.FunctionComponent; export function useChannelListContext (): ChannelListProviderInterface; + export function useChannelList (): ChannelListProviderInterface; } declare module '@sendbird/uikit-react/ChannelList/components/AddChannel' {