Skip to content

Commit 315921a

Browse files
committed
Describe .d.ts file
1 parent 773bbed commit 315921a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@ console.log(pagesToPrint); // prints '1-10,15-20,90-100'
150150
Unbounded ranges cannot be iterated over, and you cannot call `#toArray()`
151151
for the obvious reason. Calling `#length()` for unbounded ranges will return `Infinity`.
152152

153-
### Ranges Containing Zero or Negative Integers
153+
### Ranges Containing Zero and Negative Integers
154154

155-
You can handle ranges containing zero or negative integers.
155+
You can handle ranges containing zero and negative integers.
156156
To pass negative integers to the string parser, always contain them in parentheses.
157157
Otherwise, it will be parsed as an unbounded range.
158158

@@ -191,6 +191,11 @@ while (!(page = it.next()).done) {
191191
}
192192
```
193193

194+
## TypeScript Definition File
195+
196+
This library includes TypeScript definition file. Starting from TypeScript 1.6,
197+
The TypeScript compiler can find this definition file automatically.
198+
194199
## Use in Browsers
195200

196201
This library has no external dependencies, and can be used with Webpack and Browserify.

0 commit comments

Comments
 (0)