mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
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:
parent
56343d4882
commit
984fb8dc28
@ -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",
|
||||
|
||||
@ -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
|
||||
56
types/generate-password/index.d.ts
vendored
56
types/generate-password/index.d.ts
vendored
@ -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[];
|
||||
@ -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"
|
||||
]
|
||||
}
|
||||
@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user