Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added typescript support #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

callmewa
Copy link

@callmewa callmewa commented Mar 4, 2020

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

@callmewa
Copy link
Author

callmewa commented Mar 4, 2020

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
}

@wojciechbator
Copy link

wojciechbator commented Mar 6, 2020

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

@jonschlinkert
Copy link
Owner

jonschlinkert commented Mar 6, 2020 via email

@sethlivingston
Copy link

  • bump *

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants