diff --git a/konami.js/konami-test.ts b/konami.js/konami-test.ts new file mode 100644 index 0000000000..05dff67b6e --- /dev/null +++ b/konami.js/konami-test.ts @@ -0,0 +1,5 @@ +/// + +let urlEasteEgg = new Konami("www.example.com"); + +let actionEasteEgg = new Konami(() => alert("Konami !")); diff --git a/konami.js/konami.d.ts b/konami.js/konami.d.ts new file mode 100644 index 0000000000..aeaa9ed6fc --- /dev/null +++ b/konami.js/konami.d.ts @@ -0,0 +1,8 @@ +// Type definitions for Konami-js 1.4.3 +// Project: https://github.com/snaptortoise/konami-js +// Definitions by: Matthieu Mourisson +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare class Konami { + constructor(action: string | Function); +} \ No newline at end of file