update readme
This commit is contained in:
parent
c6b7336940
commit
273ce78496
1 changed files with 4 additions and 2 deletions
|
@ -3,8 +3,10 @@ a (de)serializer for [serde-ts](https://git.kitsu.cafe/rowan/serde-ts)
|
|||
|
||||
# Usage
|
||||
```ts
|
||||
import { Null } from 'serde'
|
||||
import { fromString, toString } from 'serde-json-ts'
|
||||
import { Null, registerSerialize, registerDeserialize } from 'serde'
|
||||
import { ISerializer } from 'serde/ser'
|
||||
import { forward, IDeserializer, IIterableAccess, IMapAccess } from 'serde/de'
|
||||
import { fromString, toString } from './src/index'
|
||||
|
||||
toString(true) // "true"
|
||||
toString(null) // "null"
|
||||
|
|
Loading…
Add table
Reference in a new issue