1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-27 09:19:39 +02:00
portainer/app/types.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
491 B
TypeScript
Raw Normal View History

export interface AutomationTestingProps {
/**
* Used by cypress to identify this property.
*
* Change with care and communicate this with QA
*/
'data-cy'?: string;
}
declare module 'react' {
interface HTMLAttributes<T>
extends AriaAttributes,
DOMAttributes<T>,
AutomationTestingProps {}
}
export type WithRequiredProperties<T, K extends keyof T> = Omit<T, K> &
Required<Pick<T, K>>;
export type ValueOf<T extends Record<string, unknown>> = T[keyof T];