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.