mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 08:17:05 +00:00
Merge pull request #10545 from peernohell/master
Add TypeDefinition for autosize plugin of jackmoore
This commit is contained in:
@@ -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'));
|
||||
Vendored
+17
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user