# @types/ng-command

> TypeScript definitions for ng-command

Latest version **0.2.35** (published 2024-01-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/ng-command
pnpm add @types/ng-command
yarn add @types/ng-command
bun add @types/ng-command
```

## 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; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.2.35 |
| Published | 2024-01-30 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51445 |
| Maintainers | types |

## Links

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

## Dependencies (1)

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

## Recent versions

- 0.2.35 (latest) — 2024-01-30
- 0.2.34 (ts4.5) — 2023-11-07
- 0.2.31 (ts3.0) — 2020-05-15
- 0.2.30 (ts2.3) — 2017-06-15
- 0.2.29 (ts2.0) — 2016-09-19
- 0.2.33 — 2023-10-18
- 0.2.32 — 2023-09-23
- 0.2.28 — 2016-07-14
- 0.2.27-alpha — 2016-07-08
- 0.2.25-alpha — 2016-07-04
- 0.2.24-alpha — 2016-07-02
- 0.2.23-alpha — 2016-07-01
- 0.2.22-alpha — 2016-07-01
- 0.2.21-alpha — 2016-05-25
- 0.2.20-alpha — 2016-05-20
- … 2 more at https://npm.io/package/@types/ng-command/versions

## README

# Installation
> `npm install --save @types/ng-command`

# Summary
This package contains type definitions for ng-command (https://github.com/stephenlautier/ng-command).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ng-command.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ng-command/index.d.ts)
````ts
/// <reference types="angular" />

declare namespace ngCommand {
    var ModuleName: string;

    /**
     * Command proxy object.
     */
    interface ICommand {
        /**
         * Determines whether the command is currently executing.
         */
        isExecuting: boolean;
        /**
         * Determines whether the command can execute or not.
         */
        canExecute: boolean;
        /**
         * Executes the command function.
         */
        execute: () => angular.IPromise<any>;
    }

    class Command implements ICommand {
        static id: string;

        isExecuting: boolean;
        canExecute: boolean;
        constructor($scope: angular.IScope, execute: () => angular.IPromise<any>, canExecute?: () => boolean);
        execute(): angular.IPromise<any>;
    }

    /**
     * Command factory which creates instances of @see ICommand.
     */
    interface ICommandFactory {
        /**
         * Factory instance creator method.
         * @param $scope Scope which will keep track of the command.
         * @param execute The execute function when the command is executed.
         * @param canExecute Additional function which determines whether the command can executes.
         */
        ($scope: angular.IScope, execute: () => angular.IPromise<any>, canExecute?: () => boolean): ICommand;
    }
}

````

### Additional Details
 * Last updated: Tue, 30 Jan 2024 21:35:45 GMT
 * Dependencies: [@types/angular](https://npmjs.com/package/@types/angular)

# Credits
These definitions were written by [Stephen Lautier](https://github.com/stephenlautier).

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