mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-02 19:43:20 +08:00
angular-touchspin: Provides its own types (#23878)
This commit is contained in:
@@ -24,6 +24,12 @@
|
||||
"sourceRepoURL": "https://github.com/epoberezkin/ajv",
|
||||
"asOfVersion": "1.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "angular-touchspin",
|
||||
"typingsPackageName": "angular-touchspin",
|
||||
"sourceRepoURL": "https://github.com/nkovacic/angular-touchspin",
|
||||
"asOfVersion": "1.8.2"
|
||||
},
|
||||
{
|
||||
"libraryName": "angular-ui-router-default",
|
||||
"typingsPackageName": "angular-ui-router-default",
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
import angularTouchSpin = require("angular-touchspin");
|
||||
import * as angular from 'angular';
|
||||
|
||||
angular
|
||||
.module('touchspin-tests', ['nk.touchspin'])
|
||||
.config(function(touchspinConfigProvider: angular.touchspin.ITouchSpinConfigProvider) {
|
||||
touchspinConfigProvider.defaults(<angular.touchspin.ITouchSpinOptions>{
|
||||
min: 0,
|
||||
max: 0,
|
||||
step: 0,
|
||||
decimals: 0,
|
||||
stepInterval: 0,
|
||||
forceStepDivisibility: '', // none | floor | round | ceil
|
||||
stepIntervalDelay: 0,
|
||||
verticalButtons: true,
|
||||
verticalUpClass: '',
|
||||
verticalDownClass: '',
|
||||
initVal: 0,
|
||||
prefix: '',
|
||||
postfix: '',
|
||||
prefixExtraClass: '',
|
||||
postfixExtraClass: '',
|
||||
mousewheel: true,
|
||||
buttonDownClass: '',
|
||||
buttonUpClass: '',
|
||||
buttonDownTxt: '',
|
||||
buttonUpTxt: ''
|
||||
});
|
||||
});
|
||||
43
types/angular-touchspin/index.d.ts
vendored
43
types/angular-touchspin/index.d.ts
vendored
@@ -1,43 +0,0 @@
|
||||
// Type definitions for Angular Touchspin v1.0.0
|
||||
// Project: https://github.com/nkovacic/angular-touchspin
|
||||
// Definitions by: Niko Kovačič <https://github.com/nkovacic>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="angular" />
|
||||
|
||||
declare let angularTouchSpin: string;
|
||||
export = angularTouchSpin;
|
||||
|
||||
declare module "angular" {
|
||||
namespace touchspin {
|
||||
interface ITouchSpinOptions {
|
||||
min?: number;
|
||||
max?: number;
|
||||
step?: number;
|
||||
decimals?: number;
|
||||
stepInterval?: number;
|
||||
forceStepDivisibility?: string; // none | floor | round | ceil
|
||||
stepIntervalDelay?: number;
|
||||
verticalButtons?: boolean;
|
||||
verticalUpClass?: string;
|
||||
verticalDownClass?: string;
|
||||
initVal?: number;
|
||||
prefix?: string;
|
||||
postfix?: string;
|
||||
prefixExtraClass?: string;
|
||||
postfixExtraClass?: string;
|
||||
mousewheel?: boolean;
|
||||
buttonDownClass?: string;
|
||||
buttonUpClass?: string;
|
||||
buttonDownTxt?: string;
|
||||
buttonUpTxt?: string;
|
||||
}
|
||||
|
||||
interface ITouchSpinConfig extends ITouchSpinOptions { }
|
||||
|
||||
interface ITouchSpinConfigProvider {
|
||||
defaults(touchSpinOptions: ITouchSpinOptions): void;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6",
|
||||
"dom"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": false,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"angular-touchspin-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1,79 +0,0 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json",
|
||||
"rules": {
|
||||
"adjacent-overload-signatures": false,
|
||||
"array-type": false,
|
||||
"arrow-return-shorthand": false,
|
||||
"ban-types": false,
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
"interface-name": false,
|
||||
"interface-over-type-literal": false,
|
||||
"jsdoc-format": false,
|
||||
"max-line-length": false,
|
||||
"member-access": false,
|
||||
"new-parens": false,
|
||||
"no-any-union": false,
|
||||
"no-boolean-literal-compare": false,
|
||||
"no-conditional-assignment": false,
|
||||
"no-consecutive-blank-lines": false,
|
||||
"no-construct": false,
|
||||
"no-declare-current-package": false,
|
||||
"no-duplicate-imports": false,
|
||||
"no-duplicate-variable": false,
|
||||
"no-empty-interface": false,
|
||||
"no-for-in-array": false,
|
||||
"no-inferrable-types": false,
|
||||
"no-internal-module": false,
|
||||
"no-irregular-whitespace": false,
|
||||
"no-mergeable-namespace": false,
|
||||
"no-misused-new": false,
|
||||
"no-namespace": false,
|
||||
"no-object-literal-type-assertion": false,
|
||||
"no-padding": false,
|
||||
"no-redundant-jsdoc": false,
|
||||
"no-redundant-jsdoc-2": false,
|
||||
"no-redundant-undefined": false,
|
||||
"no-reference-import": false,
|
||||
"no-relative-import-in-test": false,
|
||||
"no-self-import": false,
|
||||
"no-single-declare-module": false,
|
||||
"no-string-throw": false,
|
||||
"no-unnecessary-callback-wrapper": false,
|
||||
"no-unnecessary-class": false,
|
||||
"no-unnecessary-generics": false,
|
||||
"no-unnecessary-qualifier": false,
|
||||
"no-unnecessary-type-assertion": false,
|
||||
"no-useless-files": false,
|
||||
"no-var-keyword": false,
|
||||
"no-var-requires": false,
|
||||
"no-void-expression": false,
|
||||
"no-trailing-whitespace": false,
|
||||
"object-literal-key-quotes": false,
|
||||
"object-literal-shorthand": false,
|
||||
"one-line": false,
|
||||
"one-variable-per-declaration": false,
|
||||
"only-arrow-functions": false,
|
||||
"prefer-conditional-expression": false,
|
||||
"prefer-const": false,
|
||||
"prefer-declare-function": false,
|
||||
"prefer-for-of": false,
|
||||
"prefer-method-signature": false,
|
||||
"prefer-template": false,
|
||||
"radix": false,
|
||||
"semicolon": false,
|
||||
"space-before-function-paren": false,
|
||||
"space-within-parens": false,
|
||||
"strict-export-declare-modifiers": false,
|
||||
"trim-file": false,
|
||||
"triple-equals": false,
|
||||
"typedef-whitespace": false,
|
||||
"unified-signatures": false,
|
||||
"void-return": false,
|
||||
"whitespace": false
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user