add support for AMD require (#18142)

This commit is contained in:
sixinli
2017-07-24 08:58:05 -07:00
committed by Andy
parent e41d2c543c
commit 84384b0417
+7
View File
@@ -3,6 +3,13 @@
// Definitions by: Roger Chen <https://github.com/rcchen>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare var __keypress: Keypress.Keypress;
// Support AMD require
declare module 'keypress.js' {
export = __keypress;
}
// A keyboard input capturing utility in which any key can be a modifier key.
declare namespace Keypress {