UNPKG

@aws-amplify/core

Version:

Core category of aws-amplify

12 lines (11 loc) • 506 B
import { AmplifyContext } from './AmplifyContext'; /** * Symbol brand used to identify {@link AmplifyContext} objects at runtime. * Uses `Symbol.for()` so the brand is shared across module instances * (e.g. when `@aws-amplify/core` is accidentally duplicated in the bundle). */ export declare const AMPLIFY_CONTEXT_BRAND: unique symbol; /** * Returns `true` if the given value is a branded {@link AmplifyContext}. */ export declare function isAmplifyContext(value: unknown): value is AmplifyContext;