diff --git a/components/brave_new_tab_ui/api/dataFetch.ts b/components/brave_new_tab_ui/api/dataFetch.ts index 886169d16a7f..325139533064 100644 --- a/components/brave_new_tab_ui/api/dataFetch.ts +++ b/components/brave_new_tab_ui/api/dataFetch.ts @@ -9,7 +9,7 @@ import store from '../store' /** * Get actions from the C++ back-end down to front-end components */ -let actions: any = null +let actions: typeof newTabActions export const getActions = () => { if (actions) { return actions diff --git a/components/brave_new_tab_ui/api/topSites/bookmarks.ts b/components/brave_new_tab_ui/api/topSites/bookmarks.ts index 35c986f40b49..db5d9b77feb0 100644 --- a/components/brave_new_tab_ui/api/topSites/bookmarks.ts +++ b/components/brave_new_tab_ui/api/topSites/bookmarks.ts @@ -9,7 +9,7 @@ import { getActions } from '../dataFetch' */ export const fetchBookmarkInfo = (url: string) => { chrome.bookmarks.search(url.replace(/^https?:\/\//, ''), - (bookmarkTreeNodes) => getActions().bookmarkInfoAvailable(url, bookmarkTreeNodes[0]) + (bookmarkTreeNodes) => getActions().bookmarkInfoAvailable(url, bookmarkTreeNodes[0] as NewTab.Bookmark) ) }