Skip to content

Commit 6e4a826

Browse files
committed
Set detach method as async
1 parent 309dd1b commit 6e4a826

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export class SecretsManager implements ISecretsManager {
129129
/**
130130
* Detach the input previously attached with its namespace and ID.
131131
*/
132-
detach(token: symbol, namespace: string, id: string): void {
132+
async detach(token: symbol, namespace: string, id: string): Promise<void> {
133133
Private.checkNamespace(token, namespace);
134134
this._detach(Private.buildConnectorId(namespace, id));
135135
}

src/token.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export interface ISecretsManager {
7676
/**
7777
* Detach the input previously attached with its namespace and ID.
7878
*/
79-
detach(token: symbol, namespace: string, id: string): void;
79+
detach(token: symbol, namespace: string, id: string): Promise<void>;
8080
/**
8181
* Detach all attached input for a namespace.
8282
*/

0 commit comments

Comments
 (0)