Skip to content

Commit 8cd79f7

Browse files
authored
docs: improve the JSDoc comment for the transient option (#153)
1 parent b8dfee0 commit 8cd79f7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/types/ServiceMetadata.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export interface ServiceMetadata<T, K extends keyof T> {
1818
global?: boolean;
1919

2020
/**
21-
* Indicates if instance of this class must be created on each its request.
21+
* Indicates whether a new instance of this class must be created for each class injecting this class.
2222
* Global option is ignored when this option is used.
2323
*/
2424
transient?: boolean;

src/types/ServiceOptions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export interface ServiceOptions<T, K extends keyof T> {
1212
global?: boolean;
1313

1414
/**
15-
* Indicates if instance of this class must be created on each its request.
15+
* Indicates whether a new instance of this class must be created for each class injecting this class.
1616
* Global option is ignored when this option is used.
1717
*/
1818
transient?: boolean;

0 commit comments

Comments
 (0)