Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit a6f27ea

Browse files
committed
dtslint debug
1 parent 1b0b73e commit a6f27ea

File tree

2 files changed

+43
-42
lines changed

2 files changed

+43
-42
lines changed

packages/web3-eth-ens/types/tests/ens-test.ts

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -48,43 +48,43 @@ ens.getResolver('name', (error: Error, contract: Contract) => {});
4848
// $ExpectType Promise<Contract>
4949
ens.getResolver('name', (value: any) => {});
5050

51-
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
51+
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
5252
ens.setResolver('name', '0x0...');
53-
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
53+
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
5454
ens.setResolver('name', '0x0...', {});
55-
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
55+
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
5656
ens.setResolver('name', '0x0...', {}, (error: Error, receipt: TransactionReceipt) => {});
5757

58-
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
58+
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
5959
ens.setSubnodeOwner('name', 'label', '0x...');
60-
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
60+
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
6161
ens.setSubnodeOwner('name', 'label', '0x...', {});
62-
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
62+
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
6363
ens.setSubnodeOwner('name', 'label', '0x...', {}, (error: Error, receipt: TransactionReceipt) => {});
6464

65-
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
65+
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
6666
ens.setRecord('name', 'owner', 'resolver', '100000');
67-
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
67+
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
6868
ens.setRecord('name', 'owner', 'resolver', 100000);
69-
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
69+
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
7070
ens.setRecord('name', 'owner', 'resolver', 100000, {});
71-
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
71+
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
7272
ens.setRecord('name', 'owner', 'resolver', 100000, {}, (error: Error, receipt: TransactionReceipt) => {});
7373

74-
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
74+
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
7575
ens.setSubnodeRecord('name', 'label', 'owner', 'resolver', '100000');
76-
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
76+
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
7777
ens.setSubnodeRecord('name', 'label', 'owner', 'resolver', 100000);
78-
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
78+
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
7979
ens.setSubnodeRecord('name', 'label', 'owner', 'resolver', 100000, {});
80-
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
80+
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
8181
ens.setSubnodeRecord('name', 'label', 'owner', 'resolver', 100000, {}, (error: Error, receipt: TransactionReceipt) => {});
8282

83-
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
83+
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
8484
ens.setApprovalForAll('name', true);
85-
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
85+
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
8686
ens.setApprovalForAll('name', false, {});
87-
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
87+
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
8888
ens.setApprovalForAll('name', true, {}, (error: Error, receipt: TransactionReceipt) => {});
8989

9090
// $ExpectType Promise<boolean>
@@ -108,11 +108,11 @@ ens.getTTL('name', (error: Error, ttl: string) => {});
108108
// $ExpectType Promise<string>
109109
ens.getTTL('name', (value: any) => {});
110110

111-
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
111+
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
112112
ens.setTTL('name', 10000);
113-
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
113+
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
114114
ens.setTTL('name', 10000, {});
115-
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
115+
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
116116
ens.setTTL('name', '0xa', {}, (error: Error | TransactionRevertInstructionError, receipt: TransactionReceipt) => {});
117117

118118
// $ExpectType Promise<string>
@@ -122,11 +122,11 @@ ens.getOwner('name', (value: any) => {});
122122
// $ExpectType Promise<string>
123123
ens.getOwner('name', (error: Error, owner: string) => {});
124124

125-
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
125+
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
126126
ens.setOwner('name', '0x...');
127-
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
127+
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
128128
ens.setOwner('name', '0x...', {});
129-
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
129+
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
130130
ens.setOwner('name', '0x...', {}, (error: Error | TransactionRevertInstructionError, receipt: TransactionReceipt) => {});
131131

132132
// $ExpectType Promise<boolean>
@@ -151,11 +151,11 @@ ens.getAddress('name', (error: Error, address: string) => {});
151151
// $ExpectType Promise<string>
152152
ens.getAddress('name', (value: any) => {});
153153

154-
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
154+
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
155155
ens.setAddress('name', 'address');
156-
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
156+
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
157157
ens.setAddress('name', 'address', {});
158-
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
158+
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
159159
ens.setAddress('name', 'address', {}, (error: Error, result: any) => {});
160160

161161
// $ExpectType Promise<{ [x: string]: string; }>
@@ -165,11 +165,11 @@ ens.getPubkey('name', (error: Error, result: { [x: string]: string }) => {});
165165
// $ExpectType Promise<{ [x: string]: string; }>
166166
ens.getPubkey('name', (value: any) => {});
167167

168-
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
168+
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
169169
ens.setPubkey('name', 'x', 'y');
170-
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
170+
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
171171
ens.setPubkey('name', 'x', 'y', {});
172-
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
172+
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
173173
ens.setPubkey('name', 'x', 'y', {}, (error: Error, result: any) => {});
174174

175175
// $ExpectType Promise<string>
@@ -179,11 +179,11 @@ ens.getText('name', 'key', (error: Error, ensName: string) => {});
179179
// $ExpectType Promise<string>
180180
ens.getText('name', 'key', (value: any) => {});
181181

182-
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
182+
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
183183
ens.setText('name', 'key', 'value');
184-
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
184+
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
185185
ens.setText('name', 'key', 'value', {});
186-
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
186+
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
187187
ens.setText('name', 'key', 'value', {}, (error: Error, result: any) => {});
188188

189189
// $ExpectType Promise<string>
@@ -193,11 +193,11 @@ ens.getContent('name', (error: Error, contentHash: string) => {});
193193
// $ExpectType Promise<string>
194194
ens.getContent('name', (value: any) => {});
195195

196-
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
196+
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
197197
ens.setContent('name', 'hash');
198-
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
198+
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
199199
ens.setContent('name', 'hash', {});
200-
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
200+
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
201201
ens.setContent('name', 'hash', {}, (error: Error, result: any) => {});
202202

203203
// $ExpectType Promise<string>
@@ -207,11 +207,11 @@ ens.getMultihash('name', (error: Error, multihash: string) => {});
207207
// $ExpectType Promise<string>
208208
ens.getMultihash('name', (value: any) => {});
209209

210-
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
210+
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
211211
ens.setMultihash('name', 'hash');
212-
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
212+
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
213213
ens.setMultihash('name', 'hash', {}, (error: Error, result: any) => {});
214-
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
214+
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
215215
ens.setMultihash('name', 'hash', {});
216216

217217
// $ExpectType Promise<ContentHash>
@@ -221,9 +221,9 @@ ens.getContenthash('name', (error: Error, contenthash: ContentHash) => {});
221221
// $ExpectType Promise<ContentHash>
222222
ens.getContenthash('name', (value: ContentHash) => {});
223223

224-
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
224+
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
225225
ens.setContenthash('name', 'hash');
226-
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
226+
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
227227
ens.setContenthash('name', 'hash', {});
228-
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
228+
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
229229
ens.setContenthash('name', 'hash', {}, (error: Error, result: any) => {});

packages/web3-eth-ens/types/tslint.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"whitespace": false,
88
"no-unnecessary-class": false,
99
"no-empty-interface": false,
10-
"unified-signatures": false
10+
"unified-signatures": false,
11+
"no-redundant-jsdoc": false
1112
}
1213
}

0 commit comments

Comments
 (0)