Skip to content

Commit e62ca64

Browse files
Formatted types/u* packages with dprint
1 parent 1f7d4dd commit e62ca64

254 files changed

Lines changed: 6425 additions & 6169 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/ua-parser-js/index.d.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ declare namespace UAParser {
2121
* Mosaic, Mozilla, Netfront, Netscape, NetSurf, Nokia, OmniWeb, Opera [Mini/Mobi/Tablet],
2222
* Phoenix, Polaris, QQBrowser, RockMelt, Silk, Skyfire, SeaMonkey, SlimBrowser, Swiftfox,
2323
* Tizen, UCBrowser, Vivaldi, w3m, Yandex
24-
*
2524
*/
2625
name: string | undefined;
2726

@@ -198,8 +197,8 @@ declare const UAParser: {
198197
/**
199198
* Create a new parser with UA prepopulated and extensions extended
200199
*/
201-
new (uastring?: string, extensions?: Record<string, unknown>): UAParser.UAParserInstance;
202-
new (extensions?: Record<string, unknown>): UAParser.UAParserInstance;
200+
new(uastring?: string, extensions?: Record<string, unknown>): UAParser.UAParserInstance;
201+
new(extensions?: Record<string, unknown>): UAParser.UAParserInstance;
203202
(uastring?: string, extensions?: Record<string, unknown>): UAParser.IResult;
204203
(extensions?: Record<string, unknown>): UAParser.IResult;
205204

types/ua-parser-js/ua-parser-js-tests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import UAParser = require("ua-parser-js");
22
// tslint:disable-next-line:no-duplicate-imports testing imports
33
import { UAParser as UAParserAlias } from "ua-parser-js";
44
// tslint:disable-next-line:no-duplicate-imports testing imports
5-
import { IBrowser, ICPU, IDevice, IEngine, IOS, IResult, BROWSER, CPU, DEVICE, ENGINE, OS } from "ua-parser-js";
5+
import { BROWSER, CPU, DEVICE, ENGINE, IBrowser, ICPU, IDevice, IEngine, IOS, IResult, OS } from "ua-parser-js";
66

77
const ua = "Mozilla/5.0 (Windows NT 6.2) AppleWebKit/536.6 (KHTML, like Gecko) Chrome/20.0.1090.0 Safari/536.6";
88
new UAParser(); // $ExpectType UAParserInstance

types/uapi-json/index.d.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
// Definitions by: Zvi Wex <https://github.com/zviwex>
44
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
55

6-
import { createUtilsService } from './lib/UtilsService';
7-
import { createHotelService } from './lib/HotelsService';
8-
import { createAirService } from './lib/Air';
9-
import { createTerminalService } from './lib/Terminal';
10-
import { commonErrors } from './lib/error-types';
11-
import { requestErrors } from './lib/RequestErrors';
12-
import { airErrors } from './lib/AirErrors';
13-
import { hotelsErrors } from './lib/HotelsErrors';
14-
import { utilsErrors } from './lib/UtilsErrors';
15-
import { terminalErrors } from './lib/TerminalErrors';
16-
import { errorCodes } from './lib/error-codes';
6+
import { createAirService } from "./lib/Air";
7+
import { airErrors } from "./lib/AirErrors";
8+
import { errorCodes } from "./lib/error-codes";
9+
import { commonErrors } from "./lib/error-types";
10+
import { hotelsErrors } from "./lib/HotelsErrors";
11+
import { createHotelService } from "./lib/HotelsService";
12+
import { requestErrors } from "./lib/RequestErrors";
13+
import { createTerminalService } from "./lib/Terminal";
14+
import { terminalErrors } from "./lib/TerminalErrors";
15+
import { utilsErrors } from "./lib/UtilsErrors";
16+
import { createUtilsService } from "./lib/UtilsService";
1717

1818
export namespace errors {
1919
export { commonErrors as Common };
@@ -23,4 +23,4 @@ export namespace errors {
2323
export { utilsErrors as Utils };
2424
export { terminalErrors as Terminal };
2525
}
26-
export { createUtilsService, createHotelService, createAirService, createTerminalService, errorCodes };
26+
export { createAirService, createHotelService, createTerminalService, createUtilsService, errorCodes };

types/uapi-json/lib/Air.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Settings } from './Settings';
1+
import { Settings } from "./Settings";
22

33
export interface Pricing {
44
currency: string;
@@ -15,7 +15,7 @@ export interface SearchPassengers {
1515
[x: string]: number;
1616
}
1717

18-
export type Cabins = ['Economy'] | ['Business'] | ['Economy', 'Business'];
18+
export type Cabins = ["Economy"] | ["Business"] | ["Economy", "Business"];
1919

2020
export interface ShopParams {
2121
legs: Leg[];
@@ -60,9 +60,9 @@ export interface SSR {
6060
export interface BookPassengers {
6161
lastName: string;
6262
firstName: string;
63-
title: 'MR' | 'MS' | 'MSTR' | 'MISS';
63+
title: "MR" | "MS" | "MSTR" | "MISS";
6464
birthDate: string;
65-
gender: 'M' | 'F';
65+
gender: "M" | "F";
6666
ageCategory: string;
6767
passNumber: string;
6868
passCountry: string;
@@ -125,8 +125,8 @@ export type GetUniversalRecordParams = GetBookingParams;
125125
export type GetUniversalRecordByPNRParams = GetBookingParams;
126126

127127
export interface TicketParams {
128-
commission: { type: 'ZA' | 'Z'; value: number };
129-
fop: { type: 'Cash' };
128+
commission: { type: "ZA" | "Z"; value: number };
129+
fop: { type: "Cash" };
130130
pnr: string;
131131
}
132132

types/uapi-json/lib/HotelsService.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Settings } from './Settings';
1+
import { Settings } from "./Settings";
22

33
export interface Room {
44
adults: number;

types/uapi-json/lib/Terminal.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Settings } from './Settings';
1+
import { Settings } from "./Settings";
22

33
export function createTerminalService(Settings: Settings): {
44
getToken: () => Promise<string>;

types/uapi-json/lib/UtilsService.d.ts

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,51 @@
1-
import { Settings } from './Settings';
1+
import { Settings } from "./Settings";
22

33
export interface CurrencyConvertParams {
44
currencies: Array<{ from: string; to: string }>;
55
}
66

77
export type DataType =
8-
| 'AccountingReferenceType'
9-
| 'AccountingRemarkType'
10-
| 'Airport'
11-
| 'AirAndRailMiscType'
12-
| 'AirAndRailSupplierType'
13-
| 'BusinessType'
14-
| 'Carrier'
15-
| 'City'
16-
| 'CityAirport'
17-
| 'Country'
18-
| 'Currency'
19-
| 'EmailType'
20-
| 'Equipment'
21-
| 'FulfillmentType'
22-
| 'GeoPoliticalArea'
23-
| 'HotelAmenities'
24-
| 'HotelMealPlans'
25-
| 'HotelMiscType'
26-
| 'HotelRateCategory'
27-
| 'HotelRoomViewType'
28-
| 'HotelSupplierType'
29-
| 'HotelTaxType'
30-
| 'TRMLocation'
31-
| 'MerchandisingOfferType'
32-
| 'PassengerTypeCode'
33-
| 'PaymentFormatType'
34-
| 'PaymentType'
35-
| 'PosChannel'
36-
| 'PersonGenderType'
37-
| 'ReferencePointSearch'
38-
| 'ResourceCategoryType'
39-
| 'RoleCategoryType'
40-
| 'SsrType'
41-
| 'State'
42-
| 'StateProvince'
43-
| 'SupplierType'
44-
| 'TaxCategory'
45-
| 'Title'
46-
| 'VehicleMiscType'
47-
| 'VehicleSpecialEquipment'
48-
| 'VehicleSupplierType';
8+
| "AccountingReferenceType"
9+
| "AccountingRemarkType"
10+
| "Airport"
11+
| "AirAndRailMiscType"
12+
| "AirAndRailSupplierType"
13+
| "BusinessType"
14+
| "Carrier"
15+
| "City"
16+
| "CityAirport"
17+
| "Country"
18+
| "Currency"
19+
| "EmailType"
20+
| "Equipment"
21+
| "FulfillmentType"
22+
| "GeoPoliticalArea"
23+
| "HotelAmenities"
24+
| "HotelMealPlans"
25+
| "HotelMiscType"
26+
| "HotelRateCategory"
27+
| "HotelRoomViewType"
28+
| "HotelSupplierType"
29+
| "HotelTaxType"
30+
| "TRMLocation"
31+
| "MerchandisingOfferType"
32+
| "PassengerTypeCode"
33+
| "PaymentFormatType"
34+
| "PaymentType"
35+
| "PosChannel"
36+
| "PersonGenderType"
37+
| "ReferencePointSearch"
38+
| "ResourceCategoryType"
39+
| "RoleCategoryType"
40+
| "SsrType"
41+
| "State"
42+
| "StateProvince"
43+
| "SupplierType"
44+
| "TaxCategory"
45+
| "Title"
46+
| "VehicleMiscType"
47+
| "VehicleSpecialEquipment"
48+
| "VehicleSupplierType";
4949

5050
export interface ReferenceDataParams {
5151
dataType: DataType;

types/uapi-json/uapi-json-tests.ts

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
import { createUtilsService, createHotelService, createAirService, createTerminalService, errors } from 'uapi-json';
1+
import { createAirService, createHotelService, createTerminalService, createUtilsService, errors } from "uapi-json";
22

33
const settings = {
4-
auth: { username: 'USERNAME', password: 'PASSWORD', region: 'REGION', targetBranch: 'TARGETBRANCH' },
4+
auth: { username: "USERNAME", password: "PASSWORD", region: "REGION", targetBranch: "TARGETBRANCH" },
55
};
66
const airService = createAirService(settings);
77

88
airService
99
.shop({
1010
legs: [
1111
{
12-
from: 'LWO',
13-
to: 'JKT',
14-
departureDate: '2018-07-18',
12+
from: "LWO",
13+
to: "JKT",
14+
departureDate: "2018-07-18",
1515
},
1616
{
17-
from: 'JKT',
18-
to: 'IEV',
19-
departureDate: '2018-07-21',
17+
from: "JKT",
18+
to: "IEV",
19+
departureDate: "2018-07-21",
2020
},
2121
],
2222
passengers: {
@@ -25,27 +25,27 @@ airService
2525
CNN:1,
2626
INF: 1,
2727
INS: 1, //infant with a seat
28-
*/
28+
*/
2929
},
30-
cabins: ['Economy'], // ['Business'],
31-
requestId: '4e2fd1f8-2221-4b6c-bb6e-cf05c367cf60',
30+
cabins: ["Economy"], // ['Business'],
31+
requestId: "4e2fd1f8-2221-4b6c-bb6e-cf05c367cf60",
3232
maxJourneyTime: 300,
3333
maxSolutions: 200,
3434
pricing: {
35-
currency: 'USD',
35+
currency: "USD",
3636
eTicketability: true,
3737
},
3838
allowDirectAccess: false,
3939
})
4040
.catch((err: unknown) => {
4141
if (err instanceof errors.Common.ValidationError) {
42-
('Validation error occurred');
42+
"Validation error occurred";
4343
}
4444
if (err instanceof errors.Request.RequestValidationError) {
45-
('Validation error occurred in request');
45+
"Validation error occurred in request";
4646
}
4747
if (err instanceof errors.Request.RequestValidationError.ParamsMissing) {
48-
('Params are missing for request');
48+
"Params are missing for request";
4949
}
5050
});
5151

@@ -54,31 +54,31 @@ const utilService = createUtilsService(settings);
5454
utilService
5555
.currencyConvert({
5656
currencies: [
57-
{ from: 'EUR', to: 'USD' },
58-
{ from: 'UAH', to: 'USD' },
57+
{ from: "EUR", to: "USD" },
58+
{ from: "UAH", to: "USD" },
5959
],
6060
})
6161
.catch((err: unknown) => {
6262
if (err instanceof errors.Common.ValidationError) {
63-
('Validation error occurred');
63+
"Validation error occurred";
6464
}
6565
if (err instanceof errors.Request.RequestValidationError) {
66-
('Validation error occurred in request');
66+
"Validation error occurred in request";
6767
}
6868
if (err instanceof errors.Request.RequestValidationError.ParamsMissing) {
69-
('Params are missing for request');
69+
"Params are missing for request";
7070
}
7171
});
7272

7373
const hotelService = createHotelService(settings);
7474

7575
hotelService
7676
.search({
77-
location: 'RUAACL',
77+
location: "RUAACL",
7878
// location: 'IEV', use for IATA codes search
79-
startDate: '2022-02-22',
80-
endDate: '2022-02-22',
81-
currency: 'USD',
79+
startDate: "2022-02-22",
80+
endDate: "2022-02-22",
81+
currency: "USD",
8282
MaxWait: 30000,
8383
MaxProperties: 9999,
8484
rooms: [
@@ -95,28 +95,28 @@ hotelService
9595
})
9696
.catch((err: unknown) => {
9797
if (err instanceof errors.Common.ValidationError) {
98-
('Validation error occurred');
98+
"Validation error occurred";
9999
}
100100
if (err instanceof errors.Request.RequestValidationError) {
101-
('Validation error occurred in request');
101+
"Validation error occurred in request";
102102
}
103103
if (err instanceof errors.Request.RequestValidationError.ParamsMissing) {
104-
('Params are missing for request');
104+
"Params are missing for request";
105105
}
106106
});
107107

108108
const terminalService = createTerminalService(settings);
109109

110110
terminalService
111-
.executeCommand('command', (screens: string[]) => true)
111+
.executeCommand("command", (screens: string[]) => true)
112112
.catch((err: unknown) => {
113113
if (err instanceof errors.Common.ValidationError) {
114-
('Validation error occurred');
114+
"Validation error occurred";
115115
}
116116
if (err instanceof errors.Request.RequestValidationError) {
117-
('Validation error occurred in request');
117+
"Validation error occurred in request";
118118
}
119119
if (err instanceof errors.Request.RequestValidationError.ParamsMissing) {
120-
('Params are missing for request');
120+
"Params are missing for request";
121121
}
122122
});

types/udp-discovery/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// Definitions by: Scott Page <https://github.com/scottpage>
44
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
55

6-
import { EventEmitter } from 'events';
6+
import { EventEmitter } from "events";
77

88
/**
99
* Discovery constructor options
@@ -28,7 +28,7 @@ export interface DiscoveryConstructorOptions {
2828
/**
2929
* Reason for available or unavailable event to be fired.
3030
*/
31-
export type ReasonType = 'new' | 'availabilityChange' | 'timedOut';
31+
export type ReasonType = "new" | "availabilityChange" | "timedOut";
3232

3333
/**
3434
* Discovery events

0 commit comments

Comments
 (0)