1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 15:59:41 +02:00
portainer/app/types.ts

19 lines
441 B
TypeScript

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 WithRequiredProperty<Type, Key extends keyof Type> = Type & {
[Property in Key]-?: Type[Property];
};