Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(themed): tidy up types #10166

Merged
merged 1 commit into from
Aug 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions packages/calcite-components/src/tests/commonTests/themed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export function themed(componentTestSetup: ComponentTestSetup, tokens: Component
});
}

export type ContextSelectByAttr = { attribute: string; value: string | RegExp };
type ContextSelectByAttr = { attribute: string; value: string | RegExp };

type CSSProp = Extract<keyof CSSStyleDeclaration, string>;

Expand All @@ -183,7 +183,7 @@ type State = "press" | "hover" | "focus";
/**
* Describes a test target for themed components.
*/
export type TestTarget = {
type TestTarget = {
/**
* An object with target element and selector info.
*/
Expand All @@ -207,7 +207,7 @@ export type TestTarget = {
/**
* The expected value of the targetProp.
*/
expectedValue?: string;
expectedValue: string;

/**
* The associated component token.
Expand All @@ -230,7 +230,7 @@ type MappedCalciteCSSCustomProp = CalciteCSSCustomProp;
/**
* Describes a test selector for themed components.
*/
export type TestSelectToken = {
type TestSelectToken = {
/**
* The selector of the target element. When not provided, the component tag is used.
*/
Expand Down
Loading