Skip to content

Commit 94164a8

Browse files
1mehdifarajibehrang
authored andcommitted
updated readme and added instructions to install type definitions to support typescript
1 parent 7cddd0e commit 94164a8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,14 @@ You may use the `node_modules/build/moment-jalaali.js` file.
7474
</script>
7575
```
7676

77+
## Typescript
78+
79+
If you need type definitions for typescript, you need to install them separately.
80+
81+
```shell
82+
npm install @types/moment-jalaali
83+
```
84+
7785
## API
7886

7987
This plugin tries to mimic `momentjs` api. Basically, when you want to format or parse a string, just add a `j` to the format token like 'jYYYY' or 'jM'. For example:

0 commit comments

Comments
 (0)