# @types/angularjs-dragula

> TypeScript definitions for angularjs-dragula

Latest version **2.0.3** (published 2023-11-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/angularjs-dragula
pnpm add @types/angularjs-dragula
yarn add @types/angularjs-dragula
bun add @types/angularjs-dragula
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.0.3 |
| Published | 2023-11-06 |
| First published | 2022-02-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51476 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/angularjs-dragula
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/angularjs-dragula
- npm.io page: https://npm.io/package/@types/angularjs-dragula

## Dependencies (2)

- [@types/angular](https://npm.io/package/@types/angular.md) *
- [@types/dragula](https://npm.io/package/@types/dragula.md) *

## Recent versions

- 2.0.3 (latest) — 2023-11-06
- 2.0.0 (ts3.8) — 2022-02-23
- 2.0.2 — 2023-10-17
- 2.0.1 — 2023-09-22

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/angularjs-dragula/index.d.ts)
````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
 * Last updated: Mon, 06 Nov 2023 22:41:04 GMT
 * Dependencies: [@types/angular](https://npmjs.com/package/@types/angular), [@types/dragula](https://npmjs.com/package/@types/dragula)

# Credits
These definitions were written by [Piotr Błażejewicz](https://github.com/peterblazejewicz).

---
_Source: https://npm.io/package/@types/angularjs-dragula · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
