/
githubmirror
/
angular
Обзор
Документация
Войти
/
githubmirror
/
angular
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
devtools/projects/ng-devtools-backend/src/lib/shared/interfaces.ts
37 строк
882 B
hawkgs
refactor(devtools): reorganize backend code
20 июл 2026, 12:15
20 июл 2026, 12:15
a7ebf1c
Код
Авторство
О чём код?
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {DevToolsNode} from '../../../../protocol'; export interface DebuggingAPI { getComponent(node: Node): ComponentInstance; getDirectives(node: Node): DirectiveInstance[]; getHostElement(cmp: ComponentInstance): HTMLElement; } export type DirectiveInstance = any; export type ComponentInstance = DirectiveInstance; export interface DirectiveInstanceType { instance: DirectiveInstance; name: string; } export interface ComponentInstanceType { instance: ComponentInstance; name: string; isElement: boolean; } export interface ComponentTreeNode extends DevToolsNode< DirectiveInstanceType, ComponentInstanceType > { children: ComponentTreeNode[]; }