Skip to content

Commit

Permalink
chore: 41: Reduce copy & paste in type definition for enumerable prop…
Browse files Browse the repository at this point in the history
…erties.
  • Loading branch information
damontgomery committed Jul 28, 2021
1 parent 0e32697 commit 3682ca8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/base/outline-alert/outline-alert.ts
Expand Up @@ -3,16 +3,16 @@ import { customElement, property } from 'lit/decorators.js';
import componentStyles from './outline-alert.css.lit';
import { OutlineElement } from '../outline-element/outline-element';

export type AlertSize = 'small' | 'large';
export const alertSizes: AlertSize[] = ['small', 'large'];
export const alertSizes = <const>['small', 'large'];
export type AlertSize = typeof alertSizes[number];

export type AlertStatusType = 'information' | 'warning' | 'error' | 'success';
export const alertStatusTypes: AlertStatusType[] = [
export const alertStatusTypes = <const>[
'information',
'warning',
'error',
'success',
];
export type AlertStatusType = typeof alertStatusTypes[number];

// This can be useful for testing.
export interface OutlineAlertInterface extends HTMLElement {
Expand Down

0 comments on commit 3682ca8

Please sign in to comment.