@hatiolab/things-scene 3.2.18 → 3.2.19
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.d.ts +4 -3
- package/things-scene.mjs +1 -1
package/package.json
CHANGED
package/things-scene.d.ts
CHANGED
|
@@ -75,6 +75,7 @@ declare module '@hatiolab/things-scene' {
|
|
|
75
75
|
get ids(): string[]
|
|
76
76
|
add(id: string, target?: any): Promise<Scene & { release: () => void }>
|
|
77
77
|
get(id: string, createIf?: boolean): Promise<Scene & { release: () => void }>
|
|
78
|
+
create(id: string): Promise<Scene & { release: () => void }>
|
|
78
79
|
}
|
|
79
80
|
|
|
80
81
|
type DataSubscriptionProvider = {
|
|
@@ -170,10 +171,10 @@ declare module '@hatiolab/things-scene' {
|
|
|
170
171
|
creator: (boardId: string, resolve: (target: T) => void, reject: (error: any) => void) => Promise<T>,
|
|
171
172
|
disposer: (id: string, ref: T) => Promise<void>
|
|
172
173
|
)
|
|
173
|
-
get(id: string, createIf?: boolean): Promise<T>
|
|
174
|
+
get(id: string, createIf?: boolean): Promise<T & { release: () => void }>
|
|
174
175
|
get ids(): string[]
|
|
175
|
-
add(id: string, target: any): Promise<T>
|
|
176
|
-
create(id: string): Promise<T>
|
|
176
|
+
add(id: string, target: any): Promise<T & { release: () => void }>
|
|
177
|
+
create(id: string): Promise<T & { release: () => void }>
|
|
177
178
|
}
|
|
178
179
|
|
|
179
180
|
class ScriptLoader {
|