relative-time.d.ts 575 B

123456789101112131415161718192021
  1. import { LitElement } from 'lit';
  2. export default class SlRelativeTime extends LitElement {
  3. private updateTimeout;
  4. private isoTime;
  5. private relativeTime;
  6. private titleTime;
  7. date: Date | string;
  8. locale: string;
  9. format: 'long' | 'short' | 'narrow';
  10. numeric: 'always' | 'auto';
  11. sync: boolean;
  12. connectedCallback(): void;
  13. disconnectedCallback(): void;
  14. updateTime(): void;
  15. render(): import("lit-html").TemplateResult<1>;
  16. }
  17. declare global {
  18. interface HTMLElementTagNameMap {
  19. 'sl-relative-time': SlRelativeTime;
  20. }
  21. }