mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Add registry-auth-token * Fix: type definitions header * Fix: Change Typescript version: 2.8 * Fix: Clean-up test cases
16 lines
411 B
TypeScript
16 lines
411 B
TypeScript
import * as authToken from 'registry-auth-token';
|
|
|
|
// $ExpectType NpmCredentials
|
|
authToken('url');
|
|
// $ExpectType NpmCredentials
|
|
authToken({ recursive: true });
|
|
// $ExpectType NpmCredentials
|
|
authToken({ npmrc: { url: 'value' } });
|
|
// $ExpectType NpmCredentials
|
|
authToken({ npmrc: { registry: 'url' } });
|
|
// $ExpectType NpmCredentials
|
|
authToken('url', { npmrc: { url: 'value' } });
|
|
|
|
// $ExpectError
|
|
authToken();
|