-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.d.ts
39 lines (33 loc) · 961 Bytes
/
types.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
declare module 'three/addons/controls/OrbitControls.js' {
import { Camera, EventDispatcher } from 'three'
export class OrbitControls extends EventDispatcher {
constructor(object: Camera, domElement?: HTMLElement)
enabled: boolean
target: THREE.Vector3
// Add all other properties from the documentation that you will use
enableZoom: boolean
minPolarAngle: number
maxPolarAngle: number
enableRotate: boolean
update(): void
// ... You can continue to add other methods or properties you plan to use
}
}
interface Window {
OptanonWrapper?: () => void
OneTrust?: {
OnConsentChanged: (callback: () => void) => void
}
OptanonActiveGroups?: string
gtag: (command: 'config' | 'event', targetId: string, params?: any) => void
}
export interface SearchBarProps {
currentImage: string
onImageChange: (newImage: string) => void
}
// global.d.ts
declare global {
interface Window {
gtag: any
}
}