@squidcloud/backend
    Preparing search index...

    Type Alias SecureMetricAction<T>

    SecureMetricAction: T extends "all"
        ? | ((context: SecureMetricContext) => boolean | Promise<boolean>)
        | (() => boolean | Promise<boolean>)
        : T extends "write"
            ? | ((context: SecureMetricContext) => boolean | Promise<boolean>)
            | (() => boolean | Promise<boolean>)
            : never

    A function that determines access to a metric based on the action type T.

    Type Parameters

    • T extends MetricActionType