2.1.34 • Published 7 months ago

@types/contextjs v2.1.34

Weekly downloads
7
License
MIT
Repository
github
Last release
7 months ago

Installation

npm install --save @types/contextjs

Summary

This package contains type definitions for contextjs (https://github.com/jakiestfu/Context.js).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/contextjs.

index.d.ts

// Type definitions for contextjs 2.1.1
// Project: https://github.com/jakiestfu/Context.js
// Definitions by: Kern Handa <https://github.com/kernhanda>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped


interface MenuObject {
    action?: ((e: Event) => void) | undefined;
    divider?: boolean | undefined;
    header?: string | undefined;
    href?: string | undefined;
    subMenu?: MenuObject[] | undefined;
    target?: string | undefined;
    text?: string | undefined;
}

interface InitSettings {
    above?: string | boolean | undefined;
    compress?: boolean | undefined;
    fadeSpeed?: number | undefined;
    filter?: ((e: Element) => void) | undefined;
    preventDoubleContext?: boolean | undefined;
}

declare namespace context {
    function init(settings?: InitSettings): void;
    function destroy(selector: any): void;
    function attach(selector: any, menuObjects: MenuObject[]): void;
    function settings(settings: InitSettings): void;
}

export = context;

Additional Details

  • Last updated: Thu, 08 Jul 2021 09:08:10 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Kern Handa.

2.1.34

7 months ago

2.1.32

9 months ago

2.1.33

7 months ago

2.1.31

3 years ago

2.1.30

8 years ago

2.1.29

8 years ago

2.1.28-alpha

8 years ago

2.1.27-alpha

8 years ago

2.1.26-alpha

8 years ago

2.1.25-alpha

8 years ago

2.1.24-alpha

8 years ago

2.1.23-alpha

8 years ago

2.1.22-alpha

8 years ago

2.1.17-alpha

8 years ago

2.1.16-alpha

8 years ago