nx/graph/client/src/globals.d.ts

49 lines
1.1 KiB
TypeScript

/* eslint-disable @nx/enforce-module-boundaries */
// nx-ignore-next-line
import type {
ProjectGraphClientResponse,
TaskGraphClientResponse,
} from 'nx/src/command-line/dep-graph';
/* eslint-enable @nx/enforce-module-boundaries */
import { AppConfig } from './app/interfaces';
import { ExternalApi } from './app/external-api';
export declare global {
export interface Window {
exclude: string[];
watch: boolean;
localMode: 'serve' | 'build';
projectGraphResponse?: ProjectGraphClientResponse;
taskGraphResponse?: TaskGraphClientResponse;
environment: 'dev' | 'watch' | 'release' | 'nx-console';
appConfig: AppConfig;
useXstateInspect: boolean;
externalApi?: ExternalApi;
}
}
declare module 'cytoscape' {
interface Core {
anywherePanning: Function;
}
interface ElementDefinition {
pannable?: boolean;
}
interface NodeSingular {
popperRef: Function;
pannable: () => boolean;
}
interface EdgeSingular {
popperRef: Function;
}
namespace Css {
interface EdgeLine {
'edge-text-rotation'?: string;
}
}
}