theatre/theatre/globals.d.ts
Aria Minaei f562d225c6 WIP: Upgrade to react 18
At this point, the studio and core work with react 18, but r3f doesn't.
2023-08-03 20:42:40 +02:00

65 lines
1.5 KiB
TypeScript

interface Window {
__REDUX_DEVTOOLS_EXTENSION__?: $IntentionalAny
__IS_VISUAL_REGRESSION_TESTING?: boolean
}
interface NodeModule {
hot?: {
accept(path: string, callback: () => void): void
}
}
interface ProcessEnv {
NODE_ENV: 'development' | 'production' | 'test'
// The version of the package, as defined in package.json
THEATRE_VERSION: string
// This is set to 'true' when building the playground
BUILT_FOR_PLAYGROUND: 'true' | 'false'
}
declare module '*.svg' {
var s: string
export default s
}
declare module '*.png' {
const s: string
export default s
}
declare module 'json-touch-patch' {
type Diff = $FixMe
const patch: <State>(s: State, diffs: Diff[]) => State
export default patch
}
declare module 'jiff'
declare module '*.json'
declare module 'propose' {
const propose: (
str: string,
dictionary: string[],
options?: {threshold?: number; ignoreCase?: boolean},
) => string | null
export default propose
}
// declare module 'inspect.macro' {
// const inspect: (...vals: $IntentionalAny[]) => void
// export default inspect
// }
declare module 'timing-function/lib/UnitBezier' {
export default class UnitBezier {
constructor(p1x: numbe, p1y: number, p2x: number, p2y: number)
solve(progression: number, epsilon: number)
solveSimple(progression: number)
}
}
declare module 'circular-dependency-plugin'
declare module 'merge-deep'
declare module 'blob-compare' {
const compare: (left: File | Blob, right: File | Blob) => Promise<boolean>
export default compare
}