TypeScript definitions for contextjs


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



npm install --save @types/contextjs


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


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


// 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


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.