AlertifyJS
AlertifyJS copied to clipboard
Typings request.
Typings would be really helpful, as we use alertifyjs in our typescript project.
I intend to do a complete re-write using typescript, but still can't find the time!
@AloeDream Check out these typings.
@MohammadYounes, thanks for typing link, guess its ok for basic shape, but it would be great to get full library typing experience with information about different options and method and underling types especially when creating custom dialogs.
@MohammadYounes Any update on the typings? The link mentioned seems to be dead. Any help would be appreciated.
@apratheek Seems the author deleted the repo.
It's still on my todo list. But, unfortunately I can't find the time to do it.
Sad, we have to switch to another library for this reason...
@CoskunSunali @apratheek @AloeDream
1. General approach
- Create a
global.d.ts
includingdeclare var alertify: object;
- Add the typings file
global.d.ts
to your TypeScript configuration - Instead of
object
you could define a interface including all the functions
Did not try it, but that just it...
2. DefinitelyTyped approach
npm install --save @types/alertify
See: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/alertify
@MohammadYounes Issue could be closed I think
@redaxmedia Why? we are still missing detailed typings - @types/alertify
is for the old alertify.js.