@squidcloud/backend
Preparing search index...
SecureMetricAction
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
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
@squidcloud/backend
Loading...
A function that determines access to a metric based on the action type T.