Merge pull request #10545 from peernohell/master

Add TypeDefinition for autosize plugin of jackmoore
This commit is contained in:
Nathan Shively-Sanders
2016-08-10 15:40:06 -07:00
committed by GitHub
2 changed files with 27 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
/// <reference path="autosize.d.ts" />
// from a NodeList
autosize(document.querySelectorAll('textarea'));
// from a single Node
autosize(document.querySelector('textarea'));
// from a single element
autosize(document.getElementById('my-textarea'));
+17
View File
@@ -0,0 +1,17 @@
// Type definitions for jquery.autosize 3.0.7
// Project: http://www.jacklmoore.com/autosize/
// Definitions by: Aaron T. King <https://github.com/kingdango>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace autosize {
interface AutosizeStatic {
(el: Element): void;
(el: NodeList): void;
}
}
declare var autosize: autosize.AutosizeStatic;
declare module 'autosize' {
export = autosize;
}