Skip to content

Commit

Permalink
Try shortening TS type for multi
Browse files Browse the repository at this point in the history
  • Loading branch information
lydell committed Nov 30, 2024
1 parent 37d8a48 commit 6d4b17b
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,16 +299,26 @@ Here’s a summary of all codecs (with slightly simplified type annotations) and
value: type10 }
&gt;</pre></td>
<td>you decide</td>
<td>A subset of: <pre>{ type: "undefined"; value: undefined }
| { type: "null"; value: null }
| { type: "boolean"; value: boolean }
| { type: "number"; value: number }
| { type: "bigint"; value: bigint }
| { type: "string"; value: string }
| { type: "symbol"; value: symbol }
| { type: "function"; value: Function }
| { type: "array"; value: Array<unknown> }
| { type: "object"; value: Record<string, unknown> }</pre></td>
<td>A subset of: <pre> { type: "undefined";
value: undefined }
| { type: "null";
value: null }
| { type: "boolean";
value: boolean }
| { type: "number";
value: number }
| { type: "bigint";
value: bigint }
| { type: "string";
value: string }
| { type: "symbol";
value: symbol }
| { type: "function";
value: Function }
| { type: "array";
value: Array<unknown> }
| { type: "object";
value: Record<string, unknown> }</pre></td>
</tr>
<tr>
<th><a href="#recursive">recursive</a></th>
Expand Down

0 comments on commit 6d4b17b

Please sign in to comment.