From 602145b65746fecdd43aee8191bb544fbe209d32 Mon Sep 17 00:00:00 2001 From: Josh <37798644+joshuaellis@users.noreply.github.com> Date: Wed, 8 Jan 2025 15:23:14 +0000 Subject: [PATCH] feat: add __internalApplicationType to tool spec (#235) --- src/plugin.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugin.tsx b/src/plugin.tsx index c7a78844..a060fcb1 100644 --- a/src/plugin.tsx +++ b/src/plugin.tsx @@ -20,7 +20,9 @@ export const mediaAssetSource = { const tool = { ...plugin, - component: Tool + component: Tool, + // @ts-expect-error TS doesn't know about this internal field see https://github.com/sanity-io/sanity/pull/7980 + __internalApplicationType: 'sanity/media' } satisfies SanityTool export const media = definePlugin(options => ({