Skip to content

Commit

Permalink
Meta tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed May 21, 2019
1 parent 570c22f commit ad2688d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
language: node_js
node_js:
- '12'
- '10'
- '8'
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ declare const npmKeyword: {
```
*/
names(
keyword: string | string[],
keyword: string | readonly string[],
options?: npmKeyword.Options
): Promise<string[]>;

Expand All @@ -72,7 +72,7 @@ declare const npmKeyword: {
})();
```
*/
count(keyword: string | string[]): Promise<number>;
count(keyword: string | readonly string[]): Promise<number>;

// TODO: Remove this for the next major release
default: typeof npmKeyword;
Expand Down
2 changes: 1 addition & 1 deletion index.test-d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {expectType} from 'tsd';
import npmKeyword = require('.');
import {PackageDescriptor} from '.';
import {PackageDescriptor} from '.';

expectType<Promise<PackageDescriptor[]>>(npmKeyword('gulpplugin'));
expectType<Promise<PackageDescriptor[]>>(npmKeyword('gulpplugin', {size: 10}));
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"devDependencies": {
"ava": "^1.4.1",
"tsd": "^0.7.2",
"tsd": "^0.7.3",
"xo": "^0.24.0"
}
}
10 changes: 5 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ Returns a promise for a list of packages having the specified keyword in their p

#### keyword

Type: `string` `string[]`<br>
Type: `string | string[]`<br>
Example: `['string', 'camelcase']`

One or more keywords. Only matches packages that have *all* the given keywords.

#### options

Type: `Object`
Type: `object`

##### size

Expand All @@ -62,14 +62,14 @@ Returns a promise for a list of package names. Use this if you don't need the de

#### keyword

Type: `string` `string[]`<br>
Type: `string | string[]`<br>
Example: `['string', 'camelcase']`

One or more keywords. Only matches packages that have *all* the given keywords.

#### options

Type: `Object`
Type: `object`

##### size

Expand All @@ -84,7 +84,7 @@ Returns a promise for the count of packages.

#### keyword

Type: `string` `string[]`<br>
Type: `string | string[]`<br>
Example: `['string', 'camelcase']`

One or more keywords. Only matches packages that have *all* the given keywords.
Expand Down

0 comments on commit ad2688d

Please sign in to comment.