@thatopen/components
Advanced tools
Comparing version 2.0.10 to 2.0.11
@@ -9,3 +9,3 @@ import { Component, Disposable, Event } from "../Types"; | ||
*/ | ||
static readonly release = "2.0.8"; | ||
static readonly release = "2.0.11"; | ||
/** {@link Disposable.onDisposed} */ | ||
@@ -25,26 +25,26 @@ readonly onDisposed: Event<void>; | ||
/** | ||
* Adds a component to the list of components. | ||
* Throws an error if a component with the same UUID already exists. | ||
* | ||
* @param uuid - The unique identifier of the component. | ||
* @param instance - The instance of the component to be added. | ||
* | ||
* @throws Will throw an error if a component with the same UUID already exists. | ||
* | ||
* @internal | ||
*/ | ||
* Adds a component to the list of components. | ||
* Throws an error if a component with the same UUID already exists. | ||
* | ||
* @param uuid - The unique identifier of the component. | ||
* @param instance - The instance of the component to be added. | ||
* | ||
* @throws Will throw an error if a component with the same UUID already exists. | ||
* | ||
* @internal | ||
*/ | ||
add(uuid: string, instance: Component): void; | ||
/** | ||
* Retrieves a component instance by its constructor function. | ||
* If the component does not exist in the list, it will be created and added. | ||
* | ||
* @template U - The type of the component to retrieve. | ||
* @param Component - The constructor function of the component to retrieve. | ||
* | ||
* @returns The instance of the requested component. | ||
* | ||
* @throws Will throw an error if a component with the same UUID already exists. | ||
* | ||
* @internal | ||
*/ | ||
* Retrieves a component instance by its constructor function. | ||
* If the component does not exist in the list, it will be created and added. | ||
* | ||
* @template U - The type of the component to retrieve. | ||
* @param Component - The constructor function of the component to retrieve. | ||
* | ||
* @returns The instance of the requested component. | ||
* | ||
* @throws Will throw an error if a component with the same UUID already exists. | ||
* | ||
* @internal | ||
*/ | ||
get<U extends Component>(Component: new (components: Components) => U): U; | ||
@@ -51,0 +51,0 @@ constructor(); |
{ | ||
"name": "@thatopen/components", | ||
"description": "Collection of core functionalities to author BIM apps.", | ||
"version": "2.0.10", | ||
"version": "2.0.11", | ||
"author": "That Open Company", | ||
@@ -56,2 +56,2 @@ "contributors": [ | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
865629