@types/contextjs

TypeScript definitions for contextjs

Stats

StarsIssuesVersionUpdatedCreatedSize
@types/contextjs
2.1.312 months ago5 years agoMinified + gzip package size for @types/contextjs in KB

Readme

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.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.