You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/app/types.ts

22 lines
561 B

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>,
Partial<AutomationTestingProps> {
// keep AutomationTestingProps 'data-cy' optional because HTMLAttributes covers non interactive elements
}
}
export type WithRequiredProperty<Type, Key extends keyof Type> = Type & {
[Property in Key]-?: Type[Property];
};