@hatiolab/things-scene 3.2.17 → 3.2.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/things-scene-ie.js +1 -1
- package/things-scene-min.js +1 -1
- package/things-scene.d.ts +6 -5
- package/things-scene.mjs +1 -1
package/things-scene.d.ts
CHANGED
|
@@ -165,14 +165,15 @@ declare module '@hatiolab/things-scene' {
|
|
|
165
165
|
|
|
166
166
|
function FPS(): number
|
|
167
167
|
|
|
168
|
-
class ReferenceMap {
|
|
168
|
+
class ReferenceMap<T> {
|
|
169
169
|
constructor(
|
|
170
|
-
creator: (boardId: string, resolve:
|
|
171
|
-
disposer: (id: string, ref:
|
|
170
|
+
creator: (boardId: string, resolve: (target: T) => void, reject: (error: any) => void) => Promise<T>,
|
|
171
|
+
disposer: (id: string, ref: T) => Promise<void>
|
|
172
172
|
)
|
|
173
|
-
get(id: string, createIf?: boolean): Promise<
|
|
173
|
+
get(id: string, createIf?: boolean): Promise<T>
|
|
174
174
|
get ids(): string[]
|
|
175
|
-
add(id: string, target: any): Promise<
|
|
175
|
+
add(id: string, target: any): Promise<T>
|
|
176
|
+
create(id: string): Promise<T>
|
|
176
177
|
}
|
|
177
178
|
|
|
178
179
|
class ScriptLoader {
|