Skip to content

Commit

Permalink
fix class props
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx committed Oct 14, 2024
1 parent ad6d368 commit 7bb6ff8
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import BasicAdapter from './basic';
import { run } from '@ember/runloop';

export default class WebExtension extends BasicAdapter {
private _channel!: MessageChannel;
private _chromePort!: MessagePort;
declare private _channel: MessageChannel;
declare private _chromePort: MessagePort;
init() {
this._channel = new MessageChannel();
this._chromePort = this._channel?.port1;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import DebugPort from './debug-port';

export default class ContainerDebug extends DebugPort {
objectToConsole: any;
declare objectToConsole: any;
get objectInspector() {
return this.namespace?.objectInspector;
}
Expand Down
6 changes: 3 additions & 3 deletions packages/@ember/debug/ember-inspector-support/data-debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import DebugPort from './debug-port';
import { guidFor } from '@ember/debug/ember-inspector-support/utils/ember/object/internals';

export default class DataDebug extends DebugPort {
portNamespace!: string;
sentTypes!: Record<string, any>;
sentRecords!: Record<string, any>;
declare portNamespace: string;
declare sentTypes: Record<string, any>;
declare sentRecords: Record<string, any>;
init() {
super.init();
this.sentTypes = {};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,22 @@ import { cancel, debounce } from '@ember/runloop';
import type SourceMapSupport from '@ember/debug/ember-inspector-support/libs/source-map';

export default class DeprecationDebug extends DebugPort {
options: any;
private _warned!: boolean;
debounce: any;
private _watching: any;
deprecationsToSend: {
declare options: any;
declare private _warned: boolean;
declare debounce: any;
declare private _watching: any;
declare deprecationsToSend: {
stackStr: string;
message: string;
url: string;
count: number;
id: string;
sources: any[];
}[];
private sourceMap!: SourceMapSupport;
groupedDeprecations: any;
deprecations: any;
private __emberCliConfig: any;
declare private sourceMap: SourceMapSupport;
declare groupedDeprecations: any;
declare deprecations: any;
declare private __emberCliConfig: any;
static {
this.prototype.portNamespace = 'deprecation';
this.prototype.sourceMap = new SourceMap();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import DebugPort from './debug-port';
* @module ember-debug/general-debug
*/
export default class GeneralDebug extends DebugPort {
portNamespace!: string;
messages!: {
declare portNamespace: string;
declare messages: {
/**
* Called from the inspector to check if the inspected app has been booted.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/@ember/debug/ember-inspector-support/port.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import BaseObject from '@ember/debug/ember-inspector-support/utils/base-object';
import Evented from '@ember/debug/ember-inspector-support/utils/evented';

export default class Port extends Evented.extend(BaseObject) {
now!: number;
declare now: number;
constructor(data: any) {
super(data);
}
Expand Down
12 changes: 6 additions & 6 deletions packages/@ember/debug/ember-inspector-support/promise-debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import RSVP from 'rsvp';
import type PromiseModel from './models/promise';

export default class PromiseDebug extends DebugPort {
private __session: any;
promiseAssembler!: PromiseAssembler;
updatedPromises: PromiseModel[];
releaseMethods: (() => void)[];
portNamespace!: string;
messages!: {
declare private __session: any;
declare promiseAssembler: PromiseAssembler;
declare updatedPromises: PromiseModel[];
declare releaseMethods: (() => void)[];
declare portNamespace: string;
declare messages: {
getAndObservePromises(): void;
releasePromises(): void;
sendValueToConsole(message: any): void;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ let profileManager = new ProfileManager();
_subscribeToRenderEvents();

export default class RenderDebug extends DebugPort {
profileManager: ProfileManager;
declare profileManager: ProfileManager;
constructor(data?: any) {
super(data);
this.profileManager = profileManager;
Expand Down
4 changes: 2 additions & 2 deletions packages/@ember/debug/ember-inspector-support/route-debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ const { hasOwnProperty } = Object.prototype;

export default class RouteDebug extends DebugPort {
_cachedRouteTree = null;
private __currentURL: any;
private __currentRouter: any;
declare private __currentURL: any;
declare private __currentRouter: any;
init() {
super.init();
this.__currentURL = this.currentURL;
Expand Down
6 changes: 3 additions & 3 deletions packages/@ember/debug/ember-inspector-support/view-debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import ViewInspection from '@ember/debug/ember-inspector-support/libs/view-inspe
import bound from '@ember/debug/ember-inspector-support/utils/bound-method';

export default class ViewDebug extends DebugPort {
viewInspection!: ViewInspection;
renderTree!: RenderTree;
declare viewInspection: ViewInspection;
declare renderTree: RenderTree;
private scheduledSendTree: number | null = null;
lastRightClicked: any;
declare lastRightClicked: any;
get adapter() {
return this.namespace?.adapter;
}
Expand Down

0 comments on commit 7bb6ff8

Please sign in to comment.