Merge pull request #21489 from renjfk/holderjs

add definitions for holderjs
This commit is contained in:
Nathan Shively-Sanders
2017-11-13 15:42:38 -08:00
committed by GitHub
4 changed files with 42 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
import * as Holder from "holderjs";
const myImage = document.getElementById('myImage');
Holder.run({
images: myImage
});
+10
View File
@@ -0,0 +1,10 @@
// Type definitions for holderjs 2.9
// Project: http://holderjs.com
// Definitions by: Soner Köksal <https://github.com/renjfk>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export interface Options {
images: HTMLElement | null;
}
export function run(options: Options): void;
+24
View File
@@ -0,0 +1,24 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6",
"dom"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"holderjs-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }