@types/angularjs-dragula
TypeScript icon, indicating that this package has built-in type declarations

2.0.3 • Public • Published

Installation

npm install --save @types/angularjs-dragula

Summary

This package contains type definitions for angularjs-dragula (https://github.com/bevacqua/angularjs-dragula).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/angularjs-dragula.

index.d.ts

import angular = require("angular");
import d = require("dragula");

declare module "angular" {
    namespace dragula {
        /**
         * This service exposes a few different methods with which you can interact with `dragula` in the Angular way.
         */
        interface DragulaService {
            /**
             * Creates a `bag` scoped under `scope` and identified by `name`. You should provide the entire `drake` instance.
             * Typically, the directive takes care of this step.
             */
            add(scope: IScope, name: string, drake: d.Drake): Bag;
            /**
             * Returns the `bag` for a s`drake` instance
             */
            find(scope: IScope, name: string): Readonly<Bag> | undefined;
            /**
             * Sets the `options` used to instantiate a `drake`.
             * Refer to the documentation for `dragula` to learn more about the options themselves.
             */
            options(scope: IScope, name: string, options?: d.DragulaOptions): void;
            /**
             * Destroys a `drake` instance named `name` scoped under `scope`.
             */
            destroy(scope: IScope, name: string): void;
            /**
             * models to sync with
             */
            handleModels(scope: IScope, drake: d.Drake): void;
        }

        /**
         * Grouping of containers is called a bag.
         */
        interface Bag {
            name: string;
            drake: d.Drake;
        }
    }
}

declare function angularDragula(angular: angular.IAngularStatic): "dragula";

export as namespace angularDragula;
export = angularDragula;

Additional Details

Credits

These definitions were written by Piotr Błażejewicz.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.0.076ts3.8
2.0.076ts3.9
2.0.076ts4.0
2.0.076ts4.1
2.0.076ts4.2
2.0.076ts4.3
2.0.076ts4.4
2.0.327ts5.8
2.0.327ts5.7
2.0.327latest
2.0.327ts4.5
2.0.327ts4.6
2.0.327ts4.7
2.0.327ts4.8
2.0.327ts4.9
2.0.327ts5.0
2.0.327ts5.1
2.0.327ts5.2
2.0.327ts5.3
2.0.327ts5.4
2.0.327ts5.5
2.0.327ts5.6
2.0.327ts5.9

Version History

VersionDownloads (Last 7 Days)Published
2.0.327
2.0.20
2.0.10
2.0.076

Package Sidebar

Install

npm i @types/angularjs-dragula

Weekly Downloads

103

Version

2.0.3

License

MIT

Unpacked Size

6.12 kB

Total Files

5

Last publish

Collaborators

  • types