Skip to content

Commit

Permalink
feat: add __internalApplicationType to tool spec (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaellis authored Jan 8, 2025
1 parent ad6d242 commit 602145b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<MediaToolOptions | void>(options => ({
Expand Down

0 comments on commit 602145b

Please sign in to comment.