@@ -109,7 +109,7 @@ export interface Multiaddr {
109
109
* // '/ip4/127.0.0.1/tcp/4001'
110
110
* ```
111
111
*/
112
- toString : ( ) => string
112
+ toString ( ) : string
113
113
114
114
/**
115
115
* Returns Multiaddr as a JSON encoded object
@@ -122,7 +122,7 @@ export interface Multiaddr {
122
122
* // '/ip4/127.0.0.1/tcp/4001'
123
123
* ```
124
124
*/
125
- toJSON : ( ) => string
125
+ toJSON ( ) : string
126
126
127
127
/**
128
128
* Returns Multiaddr as a convinient options object to be used with net.createConnection
@@ -135,7 +135,7 @@ export interface Multiaddr {
135
135
* // { family: 4, host: '127.0.0.1', transport: 'tcp', port: 4001 }
136
136
* ```
137
137
*/
138
- toOptions : ( ) => MultiaddrObject
138
+ toOptions ( ) : MultiaddrObject
139
139
140
140
/**
141
141
* Returns the protocols the Multiaddr is defined with, as an array of objects, in
@@ -152,7 +152,7 @@ export interface Multiaddr {
152
152
* // { code: 6, size: 16, name: 'tcp' } ]
153
153
* ```
154
154
*/
155
- protos : ( ) => Protocol [ ]
155
+ protos ( ) : Protocol [ ]
156
156
157
157
/**
158
158
* Returns the codes of the protocols in left-to-right order.
@@ -166,7 +166,7 @@ export interface Multiaddr {
166
166
* // [ 4, 6 ]
167
167
* ```
168
168
*/
169
- protoCodes : ( ) => number [ ]
169
+ protoCodes ( ) : number [ ]
170
170
171
171
/**
172
172
* Returns the names of the protocols in left-to-right order.
@@ -180,7 +180,7 @@ export interface Multiaddr {
180
180
* // [ 'ip4', 'tcp' ]
181
181
* ```
182
182
*/
183
- protoNames : ( ) => string [ ]
183
+ protoNames ( ) : string [ ]
184
184
185
185
/**
186
186
* Returns a tuple of parts
@@ -193,7 +193,7 @@ export interface Multiaddr {
193
193
* // [ [ 4, <Buffer 7f 00 00 01> ], [ 6, <Buffer 0f a1> ] ]
194
194
* ```
195
195
*/
196
- tuples : ( ) => Tuple [ ]
196
+ tuples ( ) : Tuple [ ]
197
197
198
198
/**
199
199
* Returns a tuple of string/number parts
@@ -208,7 +208,7 @@ export interface Multiaddr {
208
208
* // [ [ 4, '127.0.0.1' ], [ 6, '4001' ] ]
209
209
* ```
210
210
*/
211
- stringTuples : ( ) => StringTuple [ ]
211
+ stringTuples ( ) : StringTuple [ ]
212
212
213
213
/**
214
214
* Encapsulates a Multiaddr in another Multiaddr
@@ -232,7 +232,7 @@ export interface Multiaddr {
232
232
*
233
233
* @param {MultiaddrInput } addr - Multiaddr to add into this Multiaddr
234
234
*/
235
- encapsulate : ( addr : MultiaddrInput ) => Multiaddr
235
+ encapsulate ( addr : MultiaddrInput ) : Multiaddr
236
236
237
237
/**
238
238
* Decapsulates a Multiaddr from another Multiaddr
@@ -256,7 +256,7 @@ export interface Multiaddr {
256
256
*
257
257
* @param {Multiaddr | string } addr - Multiaddr to remove from this Multiaddr
258
258
*/
259
- decapsulate : ( addr : Multiaddr | string ) => Multiaddr
259
+ decapsulate ( addr : Multiaddr | string ) : Multiaddr
260
260
261
261
/**
262
262
* A more reliable version of `decapsulate` if you are targeting a
@@ -278,7 +278,7 @@ export interface Multiaddr {
278
278
* // '/ip4/127.0.0.1/tcp/8080'
279
279
* ```
280
280
*/
281
- decapsulateCode : ( code : number ) => Multiaddr
281
+ decapsulateCode ( code : number ) : Multiaddr
282
282
283
283
/**
284
284
* Extract the peerId if the multiaddr contains one
@@ -294,7 +294,7 @@ export interface Multiaddr {
294
294
* const peerId = mh1.getPeerId()
295
295
* ```
296
296
*/
297
- getPeerId : ( ) => string | null
297
+ getPeerId ( ) : string | null
298
298
299
299
/**
300
300
* Extract the path if the multiaddr contains one
@@ -310,7 +310,7 @@ export interface Multiaddr {
310
310
* const path = mh1.getPath()
311
311
* ```
312
312
*/
313
- getPath : ( ) => string | null
313
+ getPath ( ) : string | null
314
314
315
315
/**
316
316
* Checks if two Multiaddrs are the same
@@ -332,7 +332,7 @@ export interface Multiaddr {
332
332
* // false
333
333
* ```
334
334
*/
335
- equals : ( addr : { bytes : Uint8Array } ) => boolean
335
+ equals ( addr : { bytes : Uint8Array } ) : boolean
336
336
337
337
/**
338
338
* Resolve multiaddr if containing resolvable hostname.
@@ -351,7 +351,7 @@ export interface Multiaddr {
351
351
* // ]
352
352
* ```
353
353
*/
354
- resolve : ( options ?: AbortOptions ) => Promise < Multiaddr [ ] >
354
+ resolve ( options ?: AbortOptions ) : Promise < Multiaddr [ ] >
355
355
356
356
/**
357
357
* Gets a Multiaddrs node-friendly address object. Note that protocol information
@@ -368,7 +368,7 @@ export interface Multiaddr {
368
368
* // {family: 4, address: '127.0.0.1', port: 4001}
369
369
* ```
370
370
*/
371
- nodeAddress : ( ) => NodeAddress
371
+ nodeAddress ( ) : NodeAddress
372
372
373
373
/**
374
374
* Returns if a Multiaddr is a Thin Waist address or not.
@@ -399,7 +399,7 @@ export interface Multiaddr {
399
399
* // false
400
400
* ```
401
401
*/
402
- isThinWaistAddress : ( addr ?: Multiaddr ) => boolean
402
+ isThinWaistAddress ( addr ?: Multiaddr ) : boolean
403
403
}
404
404
405
405
/**
0 commit comments