Skip to content
This repository was archived by the owner on Jan 11, 2022. It is now read-only.

Commit 5924724

Browse files
committed
Remove Dictionary type
1 parent a9ae71c commit 5924724

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import BN = require('bn.js')
22

3-
import { Decoded, Dictionary, Input, List } from './types'
3+
import { Decoded, Input, List } from './types'
44

55
// Types exported outside of this package
6-
export { Decoded, Dictionary, Input, List }
6+
export { Decoded, Input, List }
77

88
/**
99
* RLP Encoding based on: https://github.com/ethereum/wiki/wiki/%5BEnglish%5D-RLP

src/types.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
import BN = require('bn.js')
22

3-
export type Input = Buffer | string | number | Uint8Array | BN | Dictionary | List | null
3+
export type Input = Buffer | string | number | Uint8Array | BN | List | null
44

55
// Use interface extension instead of type alias to
66
// make circular declaration possible.
77
export interface List extends Array<Input> {}
88

9-
export interface Dictionary {
10-
[x: string]: Input
11-
}
12-
139
export interface Decoded {
1410
data: Buffer | Buffer[]
1511
remainder: Buffer

0 commit comments

Comments
 (0)