Skip to content

Commit

Permalink
fix: fix table types (#231)
Browse files Browse the repository at this point in the history
Fixes this sort of error:

```
node_modules/@multiformats/multiaddr/dist/src/protocols-table.d.ts:10:40 - error TS1005: ',' expected.

10 export declare const table: Array<[code: number, size: number, name: string, resolvable?: boolean, path?: boolean]>;
                                          ~
```
  • Loading branch information
achingbrain authored Mar 8, 2022
1 parent d145293 commit 4146dfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/protocols-table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const V = -1
export const names: Record<string, Protocol> = {}
export const codes: Record<number, Protocol> = {}

export const table: Array<[code: number, size: number, name: string, resolvable?: boolean, path?: boolean]> = [
export const table: Array<[number, number, string, boolean?, boolean?]> = [
[4, 32, 'ip4'],
[6, 16, 'tcp'],
[33, 16, 'dccp'],
Expand Down

0 comments on commit 4146dfa

Please sign in to comment.