Skip to content

Commit 064bc0c

Browse files
author
Anatoly Ostrovsky
committed
Update eslint
1 parent cee98f1 commit 064bc0c

File tree

108 files changed

+1098
-528
lines changed

Some content is hidden

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

108 files changed

+1098
-528
lines changed

@types/directive/select/select.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export function optionDirective($interpolate: any): {
88
compile(
99
element: any,
1010
attr: any,
11-
): (scope: any, element: any, attr: any) => void;
11+
): (scope: any, elemParam: any, attrParam: any) => void;
1212
};
1313
export namespace optionDirective {
1414
let $inject: string[];

@types/directive/worker/interface.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ export interface WorkerConfig {
44
autoRestart?: boolean;
55
autoTerminate?: boolean;
66
transformMessage?: (data: any) => any;
7+
logger?: ng.LogService;
8+
err?: ng.ExceptionHandlerService;
79
}
810
export interface WorkerConnection {
911
post(data: any): void;

@types/directive/worker/worker.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
*
44
* @param {ng.ParseService} $parse
55
* @param {ng.LogService} $log
6+
* @param {ng.ExceptionHandlerService} $exceptionHandler
67
* @returns {ng.Directive}
78
*/
89
export function ngWorkerDirective(
910
$parse: ng.ParseService,
1011
$log: ng.LogService,
12+
$exceptionHandler: ng.ExceptionHandlerService,
1113
): ng.Directive;
1214
export namespace ngWorkerDirective {
1315
let $inject: string[];

@types/router/common/trace.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export namespace Category {
1212
export class Trace {
1313
_enabled: {};
1414
approximateDigests: number;
15+
$logger: any;
1516
_set(enabled: any, categories: any): void;
1617
enable(...categories: any[]): void;
1718
disable(...categories: any[]): void;

@types/router/transition/transition.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/** @typedef {import('./interface.ts').IHookRegistry} IHookRegistry */
21
/**
32
* Represents a transition between two states.
43
*

@types/router/url/url-config.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class UrlConfigProvider {
2020
_isStrictMode: boolean;
2121
/** @type {boolean} */
2222
_defaultSquashPolicy: boolean;
23-
$get: (() => any)[];
23+
$get: () => this;
2424
/**
2525
* Defines whether URL matching should be case sensitive (the default behavior), or not.
2626
*

@types/router/url/url-service.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,11 +231,11 @@ export class UrlService {
231231
/**
232232
* Creates a [[UrlMatcher]] for the specified pattern.
233233
*
234-
* @param pattern The URL pattern.
234+
* @param urlPattern The URL pattern.
235235
* @param config The config object hash.
236236
* @returns The UrlMatcher.
237237
*/
238-
compile(pattern: any, config: any): UrlMatcher;
238+
compile(urlPattern: any, config: any): UrlMatcher;
239239
/**
240240
* Returns true if the specified object is a [[UrlMatcher]], or false otherwise.
241241
*

@types/services/exception/interface.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
* A callback type for handling errors.
33
*
44
* @param {Error} exception - The exception associated with the error.
5+
* @throws {Error}
56
*/
67
export type ExceptionHandler = (exception: Error) => never;

@types/services/http/http.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export function HttpProvider(): void;
2525
export class HttpProvider {
2626
defaults: {
2727
transformResponse: (typeof defaultHttpResponseTransform)[];
28-
transformRequest: ((d: any) => any)[];
28+
transformRequest: ((data: any) => any)[];
2929
headers: {
3030
common: {
3131
Accept: string;
@@ -120,7 +120,7 @@ export class HttpProvider {
120120
*/
121121
defaults: {
122122
transformResponse: (typeof defaultHttpResponseTransform)[];
123-
transformRequest: ((d: any) => any)[];
123+
transformRequest: ((data: any) => any)[];
124124
headers: {
125125
common: {
126126
Accept: string;

@types/services/location/location.d.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,11 @@ export class LocationProvider {
321321
lastCachedState: any;
322322
$get: (
323323
| string
324-
| (($rootScope: ng.Scope, $rootElement: Element) => Location)
324+
| ((
325+
$rootScope: ng.Scope,
326+
$rootElement: Element,
327+
$exceptionHandler: ng.ExceptionHandlerService,
328+
) => Location)
325329
)[];
326330
#private;
327331
}

0 commit comments

Comments
 (0)