remove(generate-password): remove definition (#47120)

The package ships its own .d.ts:
https://github.com/brendanashworth/generate-password/blob/master/package.json#L6

Thanks!
This commit is contained in:
Piotr Błażejewicz (Peter Blazejewicz) 2020-08-28 23:50:38 +02:00 committed by GitHub
parent 56343d4882
commit 984fb8dc28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 87 deletions

View File

@ -1602,6 +1602,12 @@
"sourceRepoURL": "https://github.com/trufflesuite/ganache-core#readme",
"asOfVersion": "2.7.0"
},
{
"libraryName": "generate-password",
"typingsPackageName": "generate-password",
"sourceRepoURL": "https://github.com/brendanashworth/generate-password.git",
"asOfVersion": "1.5.1"
},
{
"libraryName": "geolib",
"typingsPackageName": "geolib",

View File

@ -1,7 +0,0 @@
import generator = require('generate-password');
generator.generate(); // $ExpectType string
generator.generateMultiple(1); // $ExpectType string[]
// generateMultiple method called without required properties should error
generator.generateMultiple(); // $ExpectError

View File

@ -1,56 +0,0 @@
// Type definitions for generate-password 1.5
// Project: https://github.com/brendanashworth/generate-password
// Definitions by: Eddie CooRo <https://github.com/Eddie-Cooro>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export interface GenerateOptions {
/**
* Length of the generated password.
* @default 10
*/
length?: number;
/**
* Should the password include numbers
* @default false
*/
numbers?: boolean;
/**
* Should the password include symbols
* @default false
*/
symbols?: boolean;
/**
* Should the password include lowercase characters
* @default true
*/
lowercase?: boolean;
/**
* Should the password include uppercase characters
* @default true
*/
uppercase?: boolean;
/**
* Should exclude visually similar characters like 'i' and 'I'
* @default false
*/
excludeSimilarCharacters?: boolean;
/**
* List of characters to be excluded from the password
* @default ""
*/
exclude?: string;
/**
* Password should include at least one character from each pool
* @default false
*/
strict?: boolean;
}
/**
* Generate one password with the given options.
*/
export function generate(options?: GenerateOptions): string;
/**
* Bulk generate multiple passwords at once, with the same options for all.
*/
export function generateMultiple(count: number, options?: GenerateOptions): string[];

View File

@ -1,23 +0,0 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"generate-password-tests.ts"
]
}

View File

@ -1 +0,0 @@
{ "extends": "dtslint/dt.json" }