PageRenderTime 44ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/js-md5/md5.d.ts

https://github.com/cssmagic/DefinitelyTyped
TypeScript Typings | 36 lines | 24 code | 7 blank | 5 comment | 0 complexity | c3014b755201b68c9f2f6297d8f3f2b5 MD5 | raw file
Possible License(s): MIT
  1. // Type definitions for js-md5 v0.3.0
  2. // Project: https://github.com/emn178/js-md5
  3. // Definitions by: Roland Greim <https://github.com/tigerxy>
  4. // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped/
  5. /// <reference path="../jquery/jquery.d.ts"/>
  6. interface JQuery {
  7. md5(value: string): string;
  8. md5(value: Array<any>): string;
  9. md5(value: Uint8Array): string;
  10. }
  11. interface JQueryStatic {
  12. md5(value: string): string;
  13. md5(value: Array<any>): string;
  14. md5(value: Uint8Array): string;
  15. }
  16. interface md5 {
  17. (value: string): string;
  18. (value: Array<any>): string;
  19. (value: Uint8Array): string;
  20. }
  21. interface String {
  22. md5(value: string): string;
  23. md5(value: Array<any>): string;
  24. md5(value: Uint8Array): string;
  25. }
  26. declare module "js-md5" {
  27. export = md5;
  28. }
  29. declare var md5: md5;