randomatic
randomatic copied to clipboard
added typescript support
wanted to use this for my typescript project and saw the previous PR stalled.
if you would like to use this lib without using // @ts-ignore
simply add the following to your types file ie types.d.ts
declare module 'randomatic' {
export default function randomatic(pattern: string, length?: number, options?: { chars?: string, exclude?: string | string[] }) : string
}
@jonschlinkert can You merge it? I'd like to switch my current random password generator to Yours and one thing that handles me a bit is lack of the typescript support :)
Sure! I’ll review ASAP!
Sent from my iPhone
On Mar 6, 2020, at 6:12 AM, Wojciech Bator [email protected] wrote:
@jonschlinkert can You merge it? I'd like to switch my current random password generator to Yours and one thing that handles me a bit is lack of the typescript support :)
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
- bump *