mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-17 07:20:23 +00:00
Added declarations for 'ityped'. (#13812)
This commit is contained in:
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
// Type definitions for ityped 0.0
|
||||
// Project: https://github.com/luisvinicius167/ityped
|
||||
// Definitions by: Daniel Rosenwasser <https://github.com/DanielRosenwasser>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export interface Configuration {
|
||||
strings?: string[];
|
||||
typeSpeed?: number;
|
||||
pause?: number;
|
||||
loop?: boolean;
|
||||
}
|
||||
|
||||
export function init(element: string, config: Configuration): void;
|
||||
|
||||
export as namespace ityped;
|
||||
@@ -0,0 +1,18 @@
|
||||
import { init } from "ityped";
|
||||
|
||||
const config = {
|
||||
strings: [
|
||||
"Strings!",
|
||||
],
|
||||
typeSpeed: 120,
|
||||
pause: 500,
|
||||
loop: true
|
||||
};
|
||||
|
||||
init("#selector", config);
|
||||
|
||||
init("#anotherSelector", {
|
||||
loop: false
|
||||
});
|
||||
|
||||
init("#anotherOne", {});
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"ityped-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "../tslint.json" }
|
||||
Reference in New Issue
Block a user