Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@types/angular-feature-flags

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/angular-feature-flags

TypeScript definitions for angular-feature-flags

Source
npmnpm
Version
1.4.7
Version published
Weekly downloads
16
-50%
Maintainers
1
Weekly downloads
 
Created
Source

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

// Type definitions for angular-feature-flags 1.4.0
// Project: https://github.com/mjt01/angular-feature-flags
// Definitions by: Borislav Zhivkov <https://github.com/borislavjivkov>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3

/// <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: ReadonlyArray<FlagData>): void;
        }

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

Additional Details

  • Last updated: Fri, 22 Sep 2023 18:11:03 GMT
  • Dependencies: @types/angular
  • Global values: none

Credits

These definitions were written by Borislav Zhivkov.

FAQs

Package last updated on 22 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts