0.6.3 • Published 6 months ago

@types/makeup-expander v0.6.3

Weekly downloads
8
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/makeup-expander

Summary

This package contains type definitions for makeup-expander (https://github.com/makeup-js/makeup-expander).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/makeup-expander.

index.d.ts

// Type definitions for makeup-expander 0.6
// Project: https://github.com/makeup-js/makeup-expander
// Definitions by: Timur Manyanov <https://github.com/darkwebdev>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6

declare namespace Expander {
    interface Options {
        autoCollapse?: boolean | undefined;
        collapseOnClickOut?: boolean | undefined;
        collapseOnFocusOut?: boolean | undefined;
        collapseOnMouseOut?: boolean | undefined;
        contentSelector?: string | undefined;
        expandOnClick?: boolean | undefined;
        expandOnFocus?: boolean | undefined;
        expandOnHover?: boolean | undefined;
        focusManagement?: string | null | undefined;
        hostSelector?: string | undefined;
        expandedClass?: string | undefined;
        simulateSpacebarClick?: boolean | undefined;
    }
}

declare class Expander {
    constructor(el: HTMLElement, selectedOptions?: Expander.Options);

    collapseOnClickOut: boolean;

    collapseOnFocusOut: boolean;

    collapseOnMouseOut: boolean;

    expandOnClick: boolean;

    expandOnFocus: boolean;

    expandOnHover: boolean;

    collapse(): void;

    expand(isKeyboard: boolean): void;

    isExpanded(): boolean;

    toggle(): void;
}

export = Expander;

Additional Details

  • Last updated: Thu, 08 Jul 2021 16:23:56 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Timur Manyanov.

0.6.3

6 months ago

0.6.2

7 months ago

0.6.1

3 years ago

0.6.0

5 years ago

0.4.0

6 years ago