1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00
Files
checktheroads-hyperglass/hyperglass/ui/globals.d.ts
2020-11-03 01:51:41 -07:00

30 lines
735 B
TypeScript

import type { MotionProps } from 'framer-motion';
declare global {
import * as React from 'react';
interface IRoute {
prefix: string;
active: boolean;
age: number;
weight: number;
med: number;
local_preference: number;
as_path: number[];
communities: string[];
next_hop: string;
source_as: number;
source_rid: string;
peer_rid: string;
rpki_state: 0 | 1 | 2 | 3;
}
type ReactRef<T = HTMLElement> = MutableRefObject<T>;
type Dict<T = string> = Record<string, T>;
type Animated<T> = Omit<T, keyof MotionProps> &
Omit<MotionProps, keyof T> & { transition?: MotionProps['transition'] };
type ReactNode = React.ReactNode;
type ReactFC = React.FunctionComponent;
}