Skip to content

Commit d3bf8b3

Browse files
committed
Fixing readme for npm.
1 parent e2acfbd commit d3bf8b3

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -252,14 +252,14 @@ The `createDecoder` function can be used to create a new decoder. It takes an op
252252
### Combining Decoders
253253
The `pipe` function can be used to create a new decoder that pipes data through multiple decoders.
254254

255-
```typescript
256-
// nominal type based on number
257-
type ID = number & { __tag__: 'ID' };
255+
```typescript
256+
// nominal type based on number
257+
type ID = number & { __tag__: 'ID' };
258258
259-
const decoder = Decode.pipe(
260-
Decode.number(),
261-
Decode.type<ID>()
262-
);
259+
const decoder = Decode.pipe(
260+
Decode.number(),
261+
Decode.type<ID>()
262+
);
263263
264-
decoder('999'); // yields ID type with value 999
265-
```
264+
decoder('999'); // yields ID type with value 999
265+
```

0 commit comments

Comments
 (0)