Skip to content

Commit

Permalink
docs(components): fix default value, fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
fengelniederhammer committed May 16, 2024
1 parent faad694 commit 507b405
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class MutationsComponent extends PreactLitAdapterWithGridJsStyles {
* It must be a valid LAPIS filter object.
*/
@property({ type: Object })
variant: Record<string, string | number | null | boolean> = { displayName: '' };
variant: Record<string, string | number | null | boolean> = {};

/**
* The type of the sequence for which the mutations should be shown.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ import { PreactLitAdapterWithGridJsStyles } from '../PreactLitAdapterWithGridJsS
*/
@customElement('gs-prevalence-over-time')
export class PrevalenceOverTimeComponent extends PreactLitAdapterWithGridJsStyles {
// prettier-ignore
// The multiline union type must not start with `|` because it looks weird in the Storybook docs
/**
* Either a single variant or an array of variants to compare.
* This must be a valid LAPIS filter object with an additional `displayName` property
Expand All @@ -51,7 +53,7 @@ export class PrevalenceOverTimeComponent extends PreactLitAdapterWithGridJsStyle
*/
@property({ type: Object })
numerator:
| (Record<string, string | number | null | boolean> & { displayName: string })
(Record<string, string | number | null | boolean> & { displayName: string })
| (Record<string, string | number | null | boolean> & {
displayName: string;
})[] = { displayName: '' };
Expand Down

0 comments on commit 507b405

Please sign in to comment.