mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-23 21:35:37 +08:00
Merge pull request #7612 from mareek/master
Adds defintion for https://github.com/snaptortoise/konami-js
This commit is contained in:
5
konami.js/konami-tests.ts
Normal file
5
konami.js/konami-tests.ts
Normal 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
8
konami.js/konami.d.ts
vendored
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user