format-number.d.ts 600 B

1234567891011121314151617181920
  1. import { LitElement } from 'lit';
  2. export default class SlFormatNumber extends LitElement {
  3. value: number;
  4. locale: string;
  5. type: 'currency' | 'decimal' | 'percent';
  6. noGrouping: boolean;
  7. currency: string;
  8. currencyDisplay: 'symbol' | 'narrowSymbol' | 'code' | 'name';
  9. minimumIntegerDigits: number;
  10. minimumFractionDigits: number;
  11. maximumFractionDigits: number;
  12. minimumSignificantDigits: number;
  13. maximumSignificantDigits: number;
  14. render(): string;
  15. }
  16. declare global {
  17. interface HTMLElementTagNameMap {
  18. 'sl-format-number': SlFormatNumber;
  19. }
  20. }