mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-06 06:19:58 +08:00
add definitions for holderjs
This commit is contained in:
7
types/holderjs/holderjs-tests.ts
Normal file
7
types/holderjs/holderjs-tests.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import * as Holder from "holderjs";
|
||||
|
||||
const myImage = document.getElementById('myImage');
|
||||
|
||||
Holder.run({
|
||||
images: myImage
|
||||
});
|
||||
10
types/holderjs/index.d.ts
vendored
Normal file
10
types/holderjs/index.d.ts
vendored
Normal 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
types/holderjs/tsconfig.json
Normal file
24
types/holderjs/tsconfig.json
Normal 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
types/holderjs/tslint.json
Normal file
1
types/holderjs/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user