Skip to content

Commit

Permalink
Merge pull request #154 from break-stuff/expanded-types-fix-regex
Browse files Browse the repository at this point in the history
fix regex to remove comments
  • Loading branch information
break-stuff authored Sep 30, 2024
2 parents 033dc21 + 324e39c commit 66cce8e
Show file tree
Hide file tree
Showing 9 changed files with 555 additions and 975 deletions.
10 changes: 6 additions & 4 deletions demo/lit-app/custom-element-jsx.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ export type RadioGroupProps = {
"my-attribute"?: RadioGroup["myAttribute"];
/** This is a test for options from an object */
"complex-union"?: RadioGroup["complexUnion"];
/** */
foobar?: RadioGroup["foobar"];
/** This is data object */
data?: RadioGroup["data"];
/** */
Expand Down Expand Up @@ -171,7 +173,7 @@ export type CustomElements = {
* ### **CSS Parts:**
* - **radio-label** - Applies custom styles the radio group label
*/
"radio-group": Partial<RadioGroupProps | BaseProps | BaseEvents>;
"radio-group": Partial<RadioGroupProps & BaseProps & BaseEvents>;

/**
* Radio buttons allow users to select a single option from a group. Here is its [documentation](https://my-site.com/documentation).
Expand All @@ -186,7 +188,7 @@ export type CustomElements = {
* ### **Slots:**
* - _default_ - add text here to label your radio button
*/
"radio-button": Partial<RadioButtonProps | BaseProps | BaseEvents>;
"radio-button": Partial<RadioButtonProps & BaseProps & BaseEvents>;

/**
* @deprecated An example of a deprecated element
Expand All @@ -196,7 +198,7 @@ export type CustomElements = {
*
*/
"deprecated-element": Partial<
DeprecatedElementProps | BaseProps | BaseEvents
DeprecatedElementProps & BaseProps & BaseEvents
>;

/**
Expand All @@ -205,5 +207,5 @@ export type CustomElements = {
* ---
*
*/
"my-button": Partial<MyButtonProps | BaseProps | BaseEvents>;
"my-button": Partial<MyButtonProps & BaseProps & BaseEvents>;
};
2 changes: 2 additions & 0 deletions demo/lit-app/custom-element-vuejs.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ type RadioGroupProps = {
"my-attribute"?: RadioGroup["myAttribute"];
/** This is a test for options from an object */
"complex-union"?: RadioGroup["complexUnion"];
/** */
foobar?: RadioGroup["foobar"];
/** This is data object */
data?: RadioGroup["data"];
/** */
Expand Down
2 changes: 2 additions & 0 deletions demo/lit-app/custom-elements-svelte.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ type RadioGroupProps = {
"my-attribute"?: RadioGroup["myAttribute"];
/** This is a test for options from an object */
"complex-union"?: RadioGroup["complexUnion"];
/** */
"bind:foobar"?: RadioGroup["foobar"];
/** This is data object */
"bind:data"?: RadioGroup["data"];
/** */
Expand Down
Loading

0 comments on commit 66cce8e

Please sign in to comment.