@types/angular-feature-flags
TypeScript icon, indicating that this package has built-in type declarations

1.4.10 • Public • Published

Installation

npm install --save @types/angular-feature-flags

Summary

This package contains type definitions for angular-feature-flags (https://github.com/mjt01/angular-feature-flags).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/angular-feature-flags.

index.d.ts

/// <reference types="angular" />

import * as ng from "angular";

declare module "angular" {
    namespace featureflags {
        export interface FlagData {
            /**
             * Unique key that is used from the markup to resolve whether a flag is active or not.
             */
            key: string;

            /**
             * Boolean value for enabling/disabling the feature
             */
            active: boolean;

            /**
             * A short name of the flag (only visible in the list of flags)
             */
            name: string;

            /**
             * A long description of the flag to further explain the feature being toggled
             * (only visible in the list of flags)
             */
            description: string;
        }

        export interface FeatureFlagsProvider {
            setInitialFlags(flags: readonly FlagData[]): void;
        }

        export interface FeatureFlagsService {
            set(
                flagsPromise:
                    | ng.IPromise<readonly FlagData[]>
                    | ng.IHttpPromise<readonly FlagData[]>,
            ): void;
        }
    }
}

Additional Details

  • Last updated: Mon, 20 Nov 2023 23:36:23 GMT
  • Dependencies: @types/angular

Credits

These definitions were written by Borislav Zhivkov.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/angular-feature-flags

Weekly Downloads

20

Version

1.4.10

License

MIT

Unpacked Size

5.08 kB

Total Files

5

Last publish

Collaborators

  • types