refactor(devtools): format code

Format DevTools TypeScript files.
This commit is contained in:
hawkgs
2026-07-15 19:55:40 +03:00
committed by Pawel Kozlowski
parent 075ed05480
commit 2aecfb0f38
5 changed files with 6 additions and 21 deletions
@@ -606,9 +606,7 @@ const getTransferStateCallback = (messageBus: MessageBus<Events>) => () => {
if (!injector) continue;
const rootData = ng.ɵgetTransferState?.(injector) as
| Record<string, TransferStateValue>
| null
| undefined;
Record<string, TransferStateValue> | null | undefined;
if (rootData && typeof rootData === 'object') {
Object.assign(merged, rootData);
collected = true;
@@ -11,10 +11,7 @@ import {MatIcon} from '@angular/material/icon';
import {MatTooltip} from '@angular/material/tooltip';
type Docs =
| 'view-encapsulation'
| 'change-detection'
| 'dependency-injection'
| 'injector-hierarchies';
'view-encapsulation' | 'change-detection' | 'dependency-injection' | 'injector-hierarchies';
const URLS: {[key in Docs]: string} = {
'change-detection': 'https://angular.dev/api/core/ChangeDetectionStrategy',
@@ -422,8 +422,7 @@ export class SignalsGraphVisualizer {
updatedNodes.push(n.id);
} else if (isClusterNode(n) && !this.expandedClustersIds.has(n.id)) {
const previewNode = signalGraph.nodes[n.previewNode ?? -1] as
| DevtoolsSignalNode
| undefined;
DevtoolsSignalNode | undefined;
if (previewNode && previewNode.epoch !== existingNode.epoch) {
this.updateDagreNode(previewNode, existingNode, signalGraph);
+2 -10
View File
@@ -223,9 +223,7 @@ export interface WizComponentMetadata extends BaseDirectiveMetadata {
/** Directive metadata for all supported frameworks. */
export type DirectiveMetadata =
| AngularDirectiveMetadata
| AcxDirectiveMetadata
| WizComponentMetadata;
AngularDirectiveMetadata | AcxDirectiveMetadata | WizComponentMetadata;
export interface SerializedInjectedService {
token: string;
@@ -383,13 +381,7 @@ export interface SupportedApis {
}
export type TransferStateValue =
| string
| number
| boolean
| null
| undefined
| Record<string, unknown>
| unknown[];
string | number | boolean | null | undefined | Record<string, unknown> | unknown[];
export interface Events {
handshake: () => void;
+1 -2
View File
@@ -146,8 +146,7 @@ export function serializeTransferState(): void {
doc.body.appendChild(script);
const root = doc.querySelector('app-root') as
| (Element & {__ngDebugHydrationInfo__?: unknown})
| null;
(Element & {__ngDebugHydrationInfo__?: unknown}) | null;
if (root) {
root.__ngDebugHydrationInfo__ = {};
}