Skip to content

Commit 3007773

Browse files
committed
[AUTOMATED]: Prettier Code Styling
1 parent 56bbdee commit 3007773

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

packages/component/src/component.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@
1414
* See the License for the specific language governing permissions and
1515
* limitations under the License.
1616
*/
17-
import { InstantiationMode, InstanceFactory, ComponentType, Dictionary } from './types';
17+
import {
18+
InstantiationMode,
19+
InstanceFactory,
20+
ComponentType,
21+
Dictionary
22+
} from './types';
1823

1924
export class Component<T = unknown> {
2025
multipleInstances = false;

packages/component/src/component_container.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class ComponentContainer {
2727
*
2828
* @param component Component being added
2929
* @param overwrite When a component with the same name has already been registered,
30-
* if overwrite is true: overwrite the existing component with the new component and create a new
30+
* if overwrite is true: overwrite the existing component with the new component and create a new
3131
* provider with the new component. It can be useful in tests where you want to use different mocks
3232
* for different tests.
3333
* if overwrite is false: throw an exception

packages/component/src/provider.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ export class Provider<T = unknown> {
2929
private readonly instances: Map<string, T> = new Map();
3030
private readonly instancesDeferred: Map<string, Deferred<T>> = new Map();
3131

32-
constructor(private readonly name: string, private readonly container: ComponentContainer) {}
32+
constructor(
33+
private readonly name: string,
34+
private readonly container: ComponentContainer
35+
) {}
3336

3437
get(identifier: string = DEFAULT_ENTRY_NAME): Promise<T> {
3538
// if multipleInstances is not supported, use the default name

packages/component/src/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,5 @@ export type InstanceFactory<T = unknown> = (
4949
) => T;
5050

5151
export type Dictionary = {
52-
[key: string]: unknown
53-
};
52+
[key: string]: unknown;
53+
};

0 commit comments

Comments
 (0)