Skip to content

Commit 437530e

Browse files
authored
docs: change example to typescript
1 parent 3ec5a49 commit 437530e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ A Javascript object validator for tiny schemas.
1414

1515
#### How to use
1616

17-
```js
18-
const Validate = require('@mrbrunelli/object-validator').default
17+
```ts
18+
import Validate from '@mrbrunelli/object-validator'
1919

2020
const objectExample = {
2121
foo: {

0 commit comments

Comments
 (0)