mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
Fixed linting errors.
This commit is contained in:
10
types/semantic-ui/index.d.ts
vendored
10
types/semantic-ui/index.d.ts
vendored
@@ -742,7 +742,7 @@ interface JQuery {
|
||||
/**
|
||||
* Search for value currently set in search input
|
||||
*/
|
||||
search(behavior: 'query', callback?: Function): JQuery;
|
||||
search(behavior: 'query', callback?: () => void): JQuery;
|
||||
/**
|
||||
* Displays message in search results with text, using template matching type
|
||||
*/
|
||||
@@ -762,7 +762,7 @@ interface JQuery {
|
||||
/**
|
||||
* Search remote endpoint for specified query and display results
|
||||
*/
|
||||
search(behavior: 'search remote', query: string, callback?: Function): JQuery;
|
||||
search(behavior: 'search remote', query: string, callback?: () => void): JQuery;
|
||||
/**
|
||||
* Search object for specified query and return results
|
||||
*/
|
||||
@@ -814,11 +814,11 @@ interface JQuery {
|
||||
/**
|
||||
* Shows results container
|
||||
*/
|
||||
search(behavior: 'show results', callback?: Function): JQuery;
|
||||
search(behavior: 'show results', callback?: () => void): JQuery;
|
||||
/**
|
||||
* Hides results container
|
||||
*/
|
||||
search(behavior: 'hide results', callback?: Function): JQuery;
|
||||
search(behavior: 'hide results', callback?: () => void): JQuery;
|
||||
/**
|
||||
* Generates results using parser specified by settings.template
|
||||
*/
|
||||
@@ -5145,7 +5145,7 @@ declare namespace SemanticUI {
|
||||
// region Rules
|
||||
|
||||
rules?: {
|
||||
[name: string]: Function;
|
||||
[name: string]: (...args: any[]) => boolean;
|
||||
};
|
||||
|
||||
// endregion
|
||||
|
||||
@@ -184,7 +184,7 @@ function test_form_specifyingValidationRules() {
|
||||
|
||||
function test_form_addCustomRule() {
|
||||
const user = { adminLevel: 1 };
|
||||
$.fn.form.settings.rules.adminLevel = function (value: any, adminLevel: number) {
|
||||
$.fn.form.settings.rules.adminLevel = (value: any, adminLevel: number) => {
|
||||
return (user.adminLevel >= adminLevel);
|
||||
};
|
||||
$('.ui.form').form({
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"extends": "../tslint.json",
|
||||
"rules": {
|
||||
"unified-signatures": false
|
||||
"unified-signatures": false,
|
||||
"prefer-method-signature": false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user