Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Commit 371cbe4

Browse files
committed
Simplify types
1 parent 55a7cf4 commit 371cbe4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/KeyringController.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
MOCK_HARDCODED_KEY,
1515
MOCK_HEX,
1616
} from './test';
17+
import type { KeyringControllerArgs } from './types';
1718

1819
const MOCK_ENCRYPTION_KEY =
1920
'{"alg":"A256GCM","ext":true,"k":"wYmxkxOOFBDP6F6VuuYFcRt_Po-tSLFHCWVolsHs4VI","key_ops":["encrypt","decrypt"],"kty":"oct"}';
@@ -52,9 +53,7 @@ async function initializeKeyringController({
5253
password,
5354
seedPhrase,
5455
}: {
55-
constructorOptions?: Partial<
56-
ConstructorParameters<typeof KeyringController>[0]
57-
>;
56+
constructorOptions?: Partial<KeyringControllerArgs>;
5857
password?: string;
5958
seedPhrase?: string;
6059
} = {}) {

0 commit comments

Comments
 (0)