From 4af7886d084dd1c9b3bdae88ee199299230c942e Mon Sep 17 00:00:00 2001 From: Daniel Lautzenheiser Date: Thu, 13 Jul 2023 09:52:59 -0400 Subject: [PATCH] fix: typings --- packages/core/src/types/global.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/core/src/types/global.d.ts b/packages/core/src/types/global.d.ts index 7d52af57..168b7871 100644 --- a/packages/core/src/types/global.d.ts +++ b/packages/core/src/types/global.d.ts @@ -3,6 +3,7 @@ export {}; import type { Config } from '../interface'; import type CmsAPI from '../index'; import type { createElement, useEffect, useState, useMemo, useCallback } from 'react'; +import type { useNavigate } from 'react-router-dom'; import type { useEntries, useFolderSupport, @@ -33,5 +34,6 @@ declare global { useMediaFiles: useMediaFiles; useMediaInsert: useMediaInsert; useUUID: useUUID; + useNavigate: useNavigate; } }