We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2acfbd commit d3bf8b3Copy full SHA for d3bf8b3
README.md
@@ -252,14 +252,14 @@ The `createDecoder` function can be used to create a new decoder. It takes an op
252
### Combining Decoders
253
The `pipe` function can be used to create a new decoder that pipes data through multiple decoders.
254
255
- ```typescript
256
- // nominal type based on number
257
- type ID = number & { __tag__: 'ID' };
+```typescript
+// nominal type based on number
+type ID = number & { __tag__: 'ID' };
258
259
- const decoder = Decode.pipe(
260
- Decode.number(),
261
- Decode.type<ID>()
262
- );
+const decoder = Decode.pipe(
+ Decode.number(),
+ Decode.type<ID>()
+);
263
264
- decoder('999'); // yields ID type with value 999
265
- ```
+decoder('999'); // yields ID type with value 999
+```
0 commit comments