@hatiolab/things-scene 3.2.16 → 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/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: any, reject: any) => Promise<any>,
171
- disposer: (id: string, ref: any) => Promise<void>
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<any>
173
+ get(id: string, createIf?: boolean): Promise<T>
174
174
  get ids(): string[]
175
- add(id: string, target: any): Promise<any>
175
+ add(id: string, target: any): Promise<T>
176
+ create(id: string): Promise<T>
176
177
  }
177
178
 
178
179
  class ScriptLoader {