Skip to content

Commit 1cc3c60

Browse files
Formatted types/x* packages with dprint
1 parent 1f7d4dd commit 1cc3c60

166 files changed

Lines changed: 4214 additions & 4251 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

types/x-axios-progress-bar/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
// Definitions by: Claas Augner <https://github.com/caugner>
44
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
55

6-
import { AxiosRequestConfig, AxiosInstance } from "axios";
6+
import { AxiosInstance, AxiosRequestConfig } from "axios";
77

8-
export function loadProgressBar(
8+
export function loadProgressBar(
99
config?: AxiosRequestConfig,
10-
instance?: AxiosInstance
10+
instance?: AxiosInstance,
1111
): void;
1212

1313
declare module "axios" {

types/x-editable/index.d.ts

Lines changed: 57 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -7,70 +7,70 @@
77
/// <reference types="jquery"/>
88

99
interface XEditableOptions {
10-
ajaxOptions?: any;
11-
anim?: string | undefined;
12-
autotext?: string | undefined;
13-
defaultValue?: any;
14-
disabled?: boolean | undefined;
15-
display?: any;
16-
emptyclass?: string | undefined;
17-
emptytext?: string | undefined;
18-
error?: any;
19-
highlight?: any;
20-
mode?: string | undefined;
21-
name?: string | undefined;
22-
onblur?: string | undefined;
23-
params?: any;
24-
pk?: any;
25-
placement?: string | undefined;
26-
savenochange?: boolean | undefined;
27-
selector?: string | undefined;
28-
send?: string | undefined;
29-
showbuttons?: any;
30-
success?: any;
31-
toggle?: string | undefined;
32-
type?: string | undefined;
33-
unsavedclass?: string | undefined;
34-
url?: any;
35-
validate?: any;
36-
value?: any;
10+
ajaxOptions?: any;
11+
anim?: string | undefined;
12+
autotext?: string | undefined;
13+
defaultValue?: any;
14+
disabled?: boolean | undefined;
15+
display?: any;
16+
emptyclass?: string | undefined;
17+
emptytext?: string | undefined;
18+
error?: any;
19+
highlight?: any;
20+
mode?: string | undefined;
21+
name?: string | undefined;
22+
onblur?: string | undefined;
23+
params?: any;
24+
pk?: any;
25+
placement?: string | undefined;
26+
savenochange?: boolean | undefined;
27+
selector?: string | undefined;
28+
send?: string | undefined;
29+
showbuttons?: any;
30+
success?: any;
31+
toggle?: string | undefined;
32+
type?: string | undefined;
33+
unsavedclass?: string | undefined;
34+
url?: any;
35+
validate?: any;
36+
value?: any;
3737
}
3838

3939
interface XEditableSubmitOptions {
40-
url?: any;
41-
data?: any;
42-
ajaxOptions?: any;
43-
error(obj: any): void;
44-
success(obj: any, config: any): void;
40+
url?: any;
41+
data?: any;
42+
ajaxOptions?: any;
43+
error(obj: any): void;
44+
success(obj: any, config: any): void;
4545
}
4646

4747
interface XEditable {
48-
options: XEditableOptions;
49-
activate(): void;
50-
destroy(): void;
51-
disable(): void;
52-
enable(): void;
53-
getValue(isSingle: boolean): any;
54-
hide(): void;
55-
option(key: any, value: any): void;
56-
setValue(value: any, convertStr: boolean): void;
57-
show(closeAll: boolean): void;
58-
submit(options: XEditableSubmitOptions): void;
59-
toggle(closeAll: boolean): void;
60-
toggleDisabled(): void;
61-
validate(): void;
48+
options: XEditableOptions;
49+
activate(): void;
50+
destroy(): void;
51+
disable(): void;
52+
enable(): void;
53+
getValue(isSingle: boolean): any;
54+
hide(): void;
55+
option(key: any, value: any): void;
56+
setValue(value: any, convertStr: boolean): void;
57+
show(closeAll: boolean): void;
58+
submit(options: XEditableSubmitOptions): void;
59+
toggle(closeAll: boolean): void;
60+
toggleDisabled(): void;
61+
validate(): void;
6262
}
6363

6464
interface JQuery {
65-
/**
66-
* Initializes editable with the specified options
67-
* @param options an object with options specific to the editable instance
68-
*/
69-
editable(options?: any): XEditable;
70-
/**
71-
* Initializes editable calling the specific method with is parameters
72-
* @param method the method to call
73-
* @param params the parameters expected by the method
74-
*/
75-
editable(method: string, params?: any): XEditable;
65+
/**
66+
* Initializes editable with the specified options
67+
* @param options an object with options specific to the editable instance
68+
*/
69+
editable(options?: any): XEditable;
70+
/**
71+
* Initializes editable calling the specific method with is parameters
72+
* @param method the method to call
73+
* @param params the parameters expected by the method
74+
*/
75+
editable(method: string, params?: any): XEditable;
7676
}
Lines changed: 60 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,120 +1,120 @@
11
// server post and response
2-
$('#username').editable({
3-
success: function(response : any, newValue : any) {
4-
if(response.status == 'error') return response.msg; //msg will be shown in editable form
5-
}
2+
$("#username").editable({
3+
success: function(response: any, newValue: any) {
4+
if (response.status == "error") return response.msg; // msg will be shown in editable form
5+
},
66
});
77

88
// no post to the server
9-
$('#username').editable({
10-
type: 'text',
11-
title: 'Enter username',
12-
success: function(response : any, newValue : any) {
9+
$("#username").editable({
10+
type: "text",
11+
title: "Enter username",
12+
success: function(response: any, newValue: any) {
1313
// update view model
14-
}
14+
},
1515
});
1616

1717
// text
1818
$("#username").editable({
1919
url: "/post",
20-
title: "Enter username"
20+
title: "Enter username",
2121
});
2222

2323
// text area
24-
$('#comments').editable({
25-
url: '/post',
26-
title: 'Enter comments',
27-
rows: 10
24+
$("#comments").editable({
25+
url: "/post",
26+
title: "Enter comments",
27+
rows: 10,
2828
});
2929

3030
// select
3131
$("#status").editable({
3232
value: 2,
3333
source: [
34-
{value: 1, text: 'Active'},
35-
{value: 2, text: 'Blocked'},
36-
{value: 3, text: 'Deleted'}
37-
]
34+
{ value: 1, text: "Active" },
35+
{ value: 2, text: "Blocked" },
36+
{ value: 3, text: "Deleted" },
37+
],
3838
});
3939

4040
// date
41-
$('#dob').editable({
42-
format: 'yyyy-mm-dd',
43-
viewformat: 'dd/mm/yyyy',
41+
$("#dob").editable({
42+
format: "yyyy-mm-dd",
43+
viewformat: "dd/mm/yyyy",
4444
datepicker: {
45-
weekStart: 1
46-
}
45+
weekStart: 1,
46+
},
4747
});
4848

4949
// datetime
50-
$('#last_seen').editable({
51-
format: 'yyyy-mm-dd hh:ii',
52-
viewformat: 'dd/mm/yyyy hh:ii',
50+
$("#last_seen").editable({
51+
format: "yyyy-mm-dd hh:ii",
52+
viewformat: "dd/mm/yyyy hh:ii",
5353
datetimepicker: {
54-
weekStart: 1
55-
}
54+
weekStart: 1,
55+
},
5656
});
5757

5858
// dateui
59-
$('#dob').editable({
60-
format: 'yyyy-mm-dd',
61-
viewformat: 'dd/mm/yyyy',
59+
$("#dob").editable({
60+
format: "yyyy-mm-dd",
61+
viewformat: "dd/mm/yyyy",
6262
datepicker: {
63-
firstDay: 1
64-
}
63+
firstDay: 1,
64+
},
6565
});
6666

6767
// combodate
68-
$('#dob').editable({
69-
format: 'YYYY-MM-DD',
70-
viewformat: 'DD.MM.YYYY',
71-
template: 'D / MMMM / YYYY',
68+
$("#dob").editable({
69+
format: "YYYY-MM-DD",
70+
viewformat: "DD.MM.YYYY",
71+
template: "D / MMMM / YYYY",
7272
combodate: {
73-
minYear: 2000,
74-
maxYear: 2015,
75-
minuteStep: 1
76-
}
73+
minYear: 2000,
74+
maxYear: 2015,
75+
minuteStep: 1,
76+
},
7777
});
7878

7979
// checklist
80-
$('#options').editable({
80+
$("#options").editable({
8181
value: [2, 3],
8282
source: [
83-
{value: 1, text: 'option1'},
84-
{value: 2, text: 'option2'},
85-
{value: 3, text: 'option3'}
86-
]
83+
{ value: 1, text: "option1" },
84+
{ value: 2, text: "option2" },
85+
{ value: 3, text: "option3" },
86+
],
8787
});
8888

8989
// select2 remote source (advanced)
90-
$('#country').editable({
90+
$("#country").editable({
9191
select2: {
92-
placeholder: 'Select Country',
92+
placeholder: "Select Country",
9393
allowClear: true,
9494
minimumInputLength: 3,
95-
id: function (item : any) {
95+
id: function(item: any) {
9696
return item.CountryId;
9797
},
9898
ajax: {
99-
url: '/getCountries',
100-
dataType: 'json',
101-
data: function (term : any, page : any) {
99+
url: "/getCountries",
100+
dataType: "json",
101+
data: function(term: any, page: any) {
102102
return { query: term };
103103
},
104-
results: function (data : any, page : any) {
104+
results: function(data: any, page: any) {
105105
return { results: data };
106-
}
106+
},
107107
},
108-
formatResult: function (item : any) {
108+
formatResult: function(item: any) {
109109
return item.CountryName;
110110
},
111-
formatSelection: function (item : any) {
111+
formatSelection: function(item: any) {
112112
return item.CountryName;
113113
},
114-
initSelection: function (element : any, callback : any) {
115-
return $.get('/getCountryById', { query: element.val() }, function (data : any) {
114+
initSelection: function(element: any, callback: any) {
115+
return $.get("/getCountryById", { query: element.val() }, function(data: any) {
116116
callback(data);
117117
});
118-
}
119-
}
118+
},
119+
},
120120
});

types/x-ray-crawler/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// Definitions by: Matt Traynham <https://github.com/mtraynham>
44
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
55

6-
import HttpContext = require('http-context');
6+
import HttpContext = require("http-context");
77

88
export = XRayCrawler;
99

types/x-ray-crawler/x-ray-crawler-tests.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import HttpContext = require('http-context');
2-
import XRayCrawler = require('x-ray-crawler');
1+
import HttpContext = require("http-context");
2+
import XRayCrawler = require("x-ray-crawler");
33

44
const xRayCrawler: XRayCrawler.Instance = XRayCrawler();
55

@@ -8,17 +8,17 @@ xRayCrawler.driver(driver);
88

99
const throttle: number = xRayCrawler.throttle();
1010
xRayCrawler.throttle(5, 4);
11-
xRayCrawler.throttle(5, '4ms');
11+
xRayCrawler.throttle(5, "4ms");
1212

1313
const randomDelay: XRayCrawler.RandomDelay = xRayCrawler.delay();
1414
const delay: number = randomDelay();
1515
xRayCrawler.delay(0, 2);
1616
xRayCrawler.delay(0);
17-
xRayCrawler.delay('0s', '5s');
17+
xRayCrawler.delay("0s", "5s");
1818

1919
const timeout: number = xRayCrawler.timeout();
2020
xRayCrawler.timeout(timeout);
21-
xRayCrawler.timeout('5s');
21+
xRayCrawler.timeout("5s");
2222

2323
const concurrency: number = xRayCrawler.concurrency();
2424
xRayCrawler.concurrency(5);
@@ -39,9 +39,9 @@ const limit: number = xRayCrawler.limit();
3939
xRayCrawler.limit(limit);
4040

4141
const xRayCrawler2: XRayCrawler.Instance = XRayCrawler()
42-
.throttle(5, '10s')
43-
.delay('5s', '10s')
44-
.timeout('20s')
42+
.throttle(5, "10s")
43+
.delay("5s", "10s")
44+
.timeout("20s")
4545
.concurrency(4)
4646
.request((request: HttpContext.Request) => {
4747
console.log(request);

0 commit comments

Comments
 (0)