Skip to content

Commit

Permalink
[base] Add back parts declaration causing studios to fail
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars committed Oct 12, 2020
1 parent 1821a37 commit 4545eb6
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions packages/@sanity/base/types/parts.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/**
* These are used by studios, not internals.
* Please do not remove this, as it'll break people's studios.
*/

/* eslint-disable @typescript-eslint/no-explicit-any */
declare module 'all:*' {
const anyArray: any[]

export default anyArray
}

declare module 'config:*' {
const pluginConfig: {[key: string]: any}

export default pluginConfig
}

declare module 'part:*'

declare module '*.css' {
const cssModule: {[key: string]: string}

export default cssModule
}

0 comments on commit 4545eb6

Please sign in to comment.