@types/analog-clock
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Installation

npm install --save @types/analog-clock

Summary

This package contains type definitions for analog-clock (https://github.com/matthewp/analog-clock#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/analog-clock.

index.d.ts

// Custom HTMLElement for the analog clock
export class AnalogClock extends HTMLElement {
    static observedAttributes: string[];

    connectedCallback(): void; // Lifecycle method called when the element is connected to the DOM
    disconnectedCallback(): void; // Lifecycle method called when the element is disconnected from the DOM
    attributeChangedCallback(attr: string, oldVal: string, newVal: string): void; // Called when an observed attribute changes

    // Getters and setters for time, offset, and dark mode properties
    time: number | undefined;
    offset: number | undefined;
    dark: boolean;

    // Public methods for stopping and starting the clock
    stop(): void;
    start(): void;
}

// Export default as the AnalogClock class
export default AnalogClock;

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:04 GMT
  • Dependencies: none

Credits

These definitions were written by ihatecsv.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/analog-clock

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

4.13 kB

Total Files

5

Last publish

Collaborators

  • types