randomatic icon indicating copy to clipboard operation
randomatic copied to clipboard

added typescript support

Open callmewa opened this issue 4 years ago • 4 comments

wanted to use this for my typescript project and saw the previous PR stalled.

callmewa avatar Mar 04 '20 17:03 callmewa

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
}

callmewa avatar Mar 04 '20 17:03 callmewa

@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 :)

wojciechbator avatar Mar 06 '20 11:03 wojciechbator

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.

jonschlinkert avatar Mar 06 '20 15:03 jonschlinkert

  • bump *

sethlivingston avatar Jun 12 '20 23:06 sethlivingston