Chore: Remove extra parentheses from return type (#19598)

pull/19844/head
Arno Saine 5 years ago committed by GitHub
parent 4a1176b2d6
commit 3f70206101
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      client/lib/createSidebarItems.ts

@ -4,11 +4,11 @@ type SidebarItem = {
i18nLabel: string;
};
export const createSidebarItems = (initialItems: SidebarItem[] = []): ({
export const createSidebarItems = (initialItems: SidebarItem[] = []): {
registerSidebarItem: (item: SidebarItem) => void;
unregisterSidebarItem: (i18nLabel: SidebarItem['i18nLabel']) => void;
itemsSubscription: Subscription<SidebarItem[]>;
}) => {
} => {
const items = initialItems;
let updateCb: (() => void) = () => undefined;

Loading…
Cancel
Save