mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
fix autosize
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/// <reference path="autosize.d.ts" />
|
||||
/// <reference types="autosize" />
|
||||
|
||||
// from a NodeList
|
||||
autosize(document.querySelectorAll('textarea'));
|
||||
|
||||
+2
-3
@@ -12,6 +12,5 @@ declare namespace autosize {
|
||||
|
||||
declare var autosize: autosize.AutosizeStatic;
|
||||
|
||||
declare module 'autosize' {
|
||||
export = autosize;
|
||||
}
|
||||
export = autosize;
|
||||
export as namespace autosize;
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": false,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"autosize-tests.ts"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user