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.