Skip to content

Commit 48fc7b5

Browse files
committed
Reorganize type generation
1 parent 3378d4e commit 48fc7b5

Some content is hidden

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

65 files changed

+69
-810
lines changed

@types/angular.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export class Angular {
128128
config?: import("./interface.ts").AngularBootstrapConfig,
129129
): ng.InjectorService;
130130
$rootScope: ng.Scope;
131-
$injector: import("./interface.ts").InjectorService;
131+
$injector: import("./core/di/internal-injector.js").InjectorService;
132132
/**
133133
* @param {any[]} modules
134134
* @param {boolean?} strictDi

@types/core/compile/attributes.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ export class Attributes {
1414
nodeRef?: import("../../shared/noderef.js").NodeRef,
1515
attributesToCopy?: any,
1616
);
17-
_$animate: import("../../interface.ts").AnimateService;
18-
_$exceptionHandler: import("../../interface.ts").ExceptionHandler;
17+
_$animate: import("../../animations/interface.ts").AnimateService;
18+
_$exceptionHandler: import("../../services/exception/interface.ts").ExceptionHandler;
1919
_$sce: any;
2020
$attr: {};
2121
/** @type {import("../../shared/noderef.js").NodeRef} */

@types/directive/form/form.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export class FormController {
103103
/** @type {FormController|Object} */
104104
$$parentForm: FormController | any;
105105
$$element: Element;
106-
$$animate: import("../../interface.ts").AnimateService;
106+
$$animate: import("../../animations/interface.ts").AnimateService;
107107
$error: {};
108108
$$success: {};
109109
$pending: any;

@types/directive/messages/messages.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ declare class NgMessageCtrl {
4040
$element: Element;
4141
$scope: ng.Scope;
4242
$attrs: ng.Attributes;
43-
$animate: import("../../interface.ts").AnimateService;
43+
$animate: import("../../animations/interface.ts").AnimateService;
4444
latestKey: number;
4545
nextAttachId: number;
4646
messages: {};

@types/directive/model/model.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ export class NgModelController {
145145
$$scope: ng.Scope;
146146
$$attr: ng.Attributes;
147147
$$element: Element;
148-
$$animate: import("../../interface.ts").AnimateService;
148+
$$animate: import("../../animations/interface.ts").AnimateService;
149149
$$parse: import("../../core/parse/interface.ts").ParseService;
150-
$$exceptionHandler: import("../../interface.ts").ExceptionHandler;
150+
$$exceptionHandler: import("../../services/exception/interface.ts").ExceptionHandler;
151151
$$hasNativeValidators: boolean;
152152
$$classCache: {};
153153
$$eventRemovers: Set<any>;

@types/interface.d.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,3 @@
1-
export * from "./animations/interface.ts";
2-
export * from "./services/http/interface.ts";
3-
export * from "./services/log/interface.ts";
4-
export * from "./services/log/log.js";
5-
export * from "./services/location/interface.ts";
6-
export * from "./services/location/location.js";
7-
export * from "./services/pubsub/pubsub.js";
8-
export * from "./services/template-cache/template-cache.js";
9-
export * from "./index.js";
10-
export * from "./angular.js";
11-
export * from "./core/di/internal-injector.js";
12-
export * from "./core/scope/scope.js";
13-
export * from "./services/cookie/cookie.js";
14-
export * from "./services/cookie/interface.ts";
15-
export * from "./services/exception/exception.ts";
16-
export * from "./services/exception/interface.ts";
17-
export * from "./core/parse/interface.ts";
18-
export * from "./filters/interface.ts";
19-
export * from "./core/filter/filter.js";
201
import { Attributes } from "./core/compile/attributes.js";
212
import { Scope } from "./core/scope/scope.js";
223
import { NgModelController } from "./directive/model/model.js";

@types/namespace.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ import {
103103
} from "./router/state/interface.ts";
104104
import { StateObject as TStateObject } from "./router/state/state-object.js";
105105
import { StateRegistryProvider as TStateRegistryProvider } from "./router/state/state-registry.js";
106-
import { ViewScroll } from "./router/scroll/interface.ts";
106+
import { ViewScrollService as TViewScrollService } from "./router/scroll/interface.ts";
107107
import { HookRegistry } from "./router/transition/interface.ts";
108108
declare global {
109109
interface Function {
@@ -169,7 +169,7 @@ declare global {
169169
type TemplateRequestService = TTemplateRequestService;
170170
type UrlService = TUrlService;
171171
type ViewService = TViewService;
172-
type ViewScrollService = ViewScroll;
172+
type ViewScrollService = TViewScrollService;
173173
type ErrorHandlingConfig = TErrorHandlingConfig;
174174
type ListenerFn = TListenerFn;
175175
type Listener = TListener;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export type ViewScroll =
1+
export type ViewScrollService =
22
| ng.AnchorScrollService
33
| ((el: Element) => void | Promise<void>);

@types/router/template-factory.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ export class TemplateFactoryProvider {
1919
) => this)
2020
)[];
2121
$templateRequest: any;
22-
$http: import("../interface.ts").HttpService;
22+
$http: import("../services/http/interface.ts").HttpService;
2323
$templateCache: ng.TemplateCacheService;
24-
$injector: import("../interface.ts").InjectorService;
24+
$injector: import("../core/di/internal-injector.js").InjectorService;
2525
/**
2626
* Forces the provider to use $http service directly
2727
* @param {boolean} value

@types/services/cookie/cookie.d.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@ export class CookieService {
2626
defaults: ng.CookieOptions,
2727
$exceptionHandler: ng.ExceptionHandlerService,
2828
);
29-
/** @type {ng.CookieOptions} */
30-
_defaults: ng.CookieOptions;
31-
_$exceptionHandler: import("../exception/interface.ts").ExceptionHandler;
29+
/** @private @type {ng.CookieOptions} */
30+
private _defaults;
31+
/** @private */
32+
private _$exceptionHandler;
3233
/**
3334
* Retrieves a raw cookie value.
3435
*

0 commit comments

Comments
 (0)