Skip to content
This repository was archived by the owner on Dec 21, 2021. It is now read-only.

Commit 569146e

Browse files
committed
Simplify privateKey type
1 parent 585edf1 commit 569146e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export type EthereumConfig = ExternalProvider|JsonRpcFetchFunc
1111

1212
export type StrictStreamrClientOptions = {
1313
auth: {
14-
privateKey?: string|BytesLike
14+
privateKey?: BytesLike
1515
ethereum?: EthereumConfig
1616
apiKey?: string
1717
username?: string

src/Session.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ enum State {
1212
}
1313

1414
export interface SessionOptions {
15-
privateKey?: string|BytesLike
15+
privateKey?: BytesLike
1616
ethereum?: ExternalProvider|JsonRpcFetchFunc
1717
apiKey?: string
1818
username?: string

test/unit/Config.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { arrayify, BytesLike } from '@ethersproject/bytes'
22
import { StreamrClient } from '../../src/StreamrClient'
33

4-
const createClient = (privateKey: string|BytesLike) => {
4+
const createClient = (privateKey: BytesLike) => {
55
return new StreamrClient({
66
auth: {
77
privateKey

0 commit comments

Comments
 (0)