# @types/angular-environment

> TypeScript definitions for angular-environment

Latest version **1.0.37** (published 2023-11-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/angular-environment
pnpm add @types/angular-environment
yarn add @types/angular-environment
bun add @types/angular-environment
```

## 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 | 1.0.37 |
| Published | 2023-11-20 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51431 |
| Maintainers | types |

## Links

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

## Recent versions

- 1.0.37 (latest) — 2023-11-20
- 1.0.33 (ts3.6) — 2021-07-09
- 1.0.32 (ts2.0) — 2016-09-19
- 1.0.36 — 2023-11-06
- 1.0.35 — 2023-10-17
- 1.0.34 — 2023-09-22
- 1.0.31 — 2016-08-25
- 1.0.30 — 2016-08-19
- 1.0.29 — 2016-08-02
- 1.0.28 — 2016-07-14
- 1.0.27-alpha — 2016-07-08
- 1.0.26-alpha — 2016-07-03
- 1.0.25-alpha — 2016-07-02
- 1.0.24-alpha — 2016-07-01
- 1.0.23-alpha — 2016-07-01
- … 4 more at https://npm.io/package/@types/angular-environment/versions

## README

# Installation
> `npm install --save @types/angular-environment`

# Summary
This package contains type definitions for angular-environment (https://github.com/juanpablob/angular-environment).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/angular-environment.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/angular-environment/index.d.ts)
````ts
declare namespace angular.environment {
    interface ServiceProvider {
        /**
         * Sets the configuration object
         */
        config: (config: angular.environment.Config) => void;
        /**
         * Evaluates the current domain and
         * loads the correct environment variables.
         */
        check: () => void;
        /**
         * Retrieves the correct version of a
         * variable for the current environment.
         */
        read: (key: string) => any;
    }
    interface Service {
        /**
         * Retrieve the current environment
         */
        get: () => string;

        /**
         * Force sets the current environment
         */
        set: (environment: string) => void;

        /**
         * Evaluates current environment against
         * environment parameter.
         */
        is: (environment: string) => boolean;

        /**
         * Retrieves the correct version of a
         * variable for the current environment.
         */
        read: (key: string) => any;
    }

    interface Config {
        /**
         * Map of domains to their environments
         */
        domains: { [environment: string]: string[] };
        /**
         * List of variables split by environment
         */
        vars: { [environment: string]: { [variable: string]: any } };
    }
}

````

### Additional Details
 * Last updated: Mon, 20 Nov 2023 23:36:23 GMT
 * Dependencies: none

# Credits
These definitions were written by [Matt Wheatley](https://github.com/terrawheat).

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