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

Properties

exists: () => boolean

Return true if the flag exists, false otherwise.

deprecated
userExposed: () => Promise<void>

Tells Flagship the user have been exposed and have seen this flag

visitorExposed: () => Promise<void>

Tells Flagship the visitor have been exposed and have seen this flag

metadata: IFlagMetadata

Return The campaign metadata object.

Methods

getValue(visitorExposed?: boolean): T

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