Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

DenoAppResource.WithDenoAllow

Method
📦 Aspire.Hosting.JavaScript v17.0.0
type DenoAppResource interface {
// ... omitted for brevity
WithDenoAllow(
kind DenoPermissionKind,
values []string,
) DenoAppResource
}

Signature

methodWithDenoAllowbuilder
Grants a Deno permission, optionally scoped to the supplied values.
WithDenoAllow(
kind DenoPermissionKind,
values []string,
) DenoAppResource
kindDenoPermissionKindThe permission to grant.
values[]stringOptional values that scope the permission. When empty, all access of the selected kind is allowed.
DenoAppResource

The resource builder.

Returns a handle; failures surface later via Err().

Defined on

This method is defined on the following type: