mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Merge pull request #30124 from darkwebdev/makeup-floating-label
Add makeup-floating-label definitions
This commit is contained in:
+12
@@ -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();
|
||||
});
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user