Merge pull request #7612 from mareek/master

Adds defintion for https://github.com/snaptortoise/konami-js
This commit is contained in:
Masahiro Wakame
2016-01-23 22:13:41 +09:00
2 changed files with 13 additions and 0 deletions

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
konami.js/konami.d.ts vendored Normal file
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);
}