This commit is contained in:
Matthieu Mourisson
2016-01-13 22:19:29 +01:00
parent 1984ea435f
commit fd9edce6a3
2 changed files with 13 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
/// <reference path="./konami.d.ts" />
let urlEasteEgg = new Konami("www.example.com");
let actionEasteEgg = new Konami(() => alert("Konami !"));
+8
View File
@@ -0,0 +1,8 @@
// Type definitions for Konami-js 1.4.3
// Project: https://github.com/snaptortoise/konami-js
// Definitions by: Matthieu Mourisson <https://github.com/mareek>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare class Konami {
constructor(action: string | Function);
}