Skip to main content
Go to Latest
interface IFlag
import { type IFlag } from "https://deno.land/x/flagship_io_js_sdk@3.0.11/index.ts";

Properties

exists: () => boolean

Return true if the flag exists, false otherwise.

userExposed: () => Promise<void>

activate the current key

metadata: IFlagMetadata

Return The campaign metadata object.

Methods

getValue(userExposed?: boolean): T

Return the current flag value if the flag key exists in Flagship and activate it if needed.