@peacockproject/core
Version:
Type definitions for Peacock's core.
17 lines (16 loc) • 580 B
TypeScript
import type { FlagSection, Flags } from "./types/types";
export declare const defaultFlags: Flags;
/**
* Get a flag from the flag file.
*
* @param flagId The flag's name.
* @returns The flag's value.
*/
export declare function getFlag(flagId: string): string | boolean | number;
export declare function setFlag(flagId: string, value: string | boolean | number): void;
export declare function saveFlags(): void;
/**
* Loads all flags.
*/
export declare function loadFlags(): void;
export declare function registerFlagSection(sectionKey: string, section: FlagSection): void;