Bump @ava/typescript from 3.0.1 to 4.0.0 (#1576)
* Bump @ava/typescript from 3.0.1 to 4.0.0 Bumps [@ava/typescript](https://github.com/avajs/typescript) from 3.0.1 to 4.0.0. - [Release notes](https://github.com/avajs/typescript/releases) - [Commits](https://github.com/avajs/typescript/compare/v3.0.1...v4.0.0) --- updated-dependencies: - dependency-name: "@ava/typescript" dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Update checked-in dependencies --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions@github.com>
This commit is contained in:
parent
ec298233c1
commit
19f00dc212
68 changed files with 2374 additions and 1754 deletions
12
node_modules/onetime/readme.md
generated
vendored
12
node_modules/onetime/readme.md
generated
vendored
|
|
@ -1,4 +1,4 @@
|
|||
# onetime [](https://travis-ci.com/github/sindresorhus/onetime)
|
||||
# onetime
|
||||
|
||||
> Ensure a function is only called once
|
||||
|
||||
|
|
@ -15,11 +15,11 @@ $ npm install onetime
|
|||
## Usage
|
||||
|
||||
```js
|
||||
const onetime = require('onetime');
|
||||
import onetime from 'onetime';
|
||||
|
||||
let i = 0;
|
||||
let index = 0;
|
||||
|
||||
const foo = onetime(() => ++i);
|
||||
const foo = onetime(() => ++index);
|
||||
|
||||
foo(); //=> 1
|
||||
foo(); //=> 1
|
||||
|
|
@ -29,7 +29,7 @@ onetime.callCount(foo); //=> 3
|
|||
```
|
||||
|
||||
```js
|
||||
const onetime = require('onetime');
|
||||
import onetime from 'onetime';
|
||||
|
||||
const foo = onetime(() => {}, {throw: true});
|
||||
|
||||
|
|
@ -69,7 +69,7 @@ Returns a number representing how many times `fn` has been called.
|
|||
Note: It throws an error if you pass in a function that is not wrapped by `onetime`.
|
||||
|
||||
```js
|
||||
const onetime = require('onetime');
|
||||
import onetime from 'onetime';
|
||||
|
||||
const foo = onetime(() => {});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue