Contentful Personalization & Analytics
    Preparing search index...

    Type Alias GuardedByFunction<T>Internal

    GuardedByFunction: <A extends readonly unknown[], R>(
        value: (...args: A) => R,
        context: ClassMethodDecoratorContext<T, (...args: A) => R>,
    ) => void

    The original method implementation.

    Type Parameters

    • T extends object

    Type Declaration

      • <A extends readonly unknown[], R>(
            value: (...args: A) => R,
            context: ClassMethodDecoratorContext<T, (...args: A) => R>,
        ): void
      • Type Parameters

        • A extends readonly unknown[]

          The parameter tuple of the original method.

        • R

          The return type of the original method.

        Parameters

        • value: (...args: A) => R

          The method being decorated.

        • context: ClassMethodDecoratorContext<T, (...args: A) => R>

          The Stage-3 decorator context for a class method.

        Returns void

        Nothing.

    Users do not call this directly; it's returned by guardedBy.