Skip to content

Commit

Permalink
Meta tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Mar 10, 2019
1 parent 3a7320f commit c399148
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ declare const npmName: {
* Check whether a package name is available (not registered) on npm.
*
* @param name - Name to check.
* @returns Whether a name is available.
* @returns Whether the given name is available.
*/
(name: string): Promise<boolean>;

/**
* Check whether multiple package names are available (not registered) on npm.
*
* @param names - Multiple names to check.
* @returns A `Map` of name/status.
* @returns A `Map` of name and status.
*/
many<NameType extends string>(names: NameType[]): Promise<Map<NameType, boolean>>;
};
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const npmName = require('npm-name');

### npmName(name)

Returns a promise for a boolean.
Returns a `Promise<boolean>` of whether the given name is available.

#### name

Expand All @@ -53,7 +53,7 @@ Name to check.

### npmName.many(names)

Returns a promise for a `Map` of name/status.
Returns a `Promise<Map>` of name and status.

#### names

Expand Down

0 comments on commit c399148

Please sign in to comment.