Merge pull request #30124 from darkwebdev/makeup-floating-label

Add makeup-floating-label definitions
This commit is contained in:
Daniel Rosenwasser
2018-10-31 17:57:59 -07:00
committed by GitHub
4 changed files with 47 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
// Type definitions for makeup-floating-label 0.0
// Project: https://github.com/makeup-js/makeup-floating-label#readme
// Definitions by: Timur Manyanov <https://github.com/darkwebdev>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.9
declare class FloatingLabel {
constructor(el: any, userOptions?: any);
refresh(): void;
}
export = FloatingLabel;
@@ -0,0 +1,9 @@
import FloatingLabel = require('makeup-floating-label');
const widgetEls = document.querySelectorAll('.floating-label');
widgetEls.forEach((el: Element) => {
const widget = new FloatingLabel(el);
widget.refresh();
});
+25
View File
@@ -0,0 +1,25 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6",
"dom",
"dom.iterable"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"makeup-floating-label-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }