Type alias Digest

Digest: Alias<`sha${256 | 384 | 512}-${string}`>

String literal helper type. Enforces any assigned string to represent a browser-parsable Digest hash. A Digest hash is used to represent a hash for Subresource Integrity validation.

Example

A valid Digest:

import { type Kernel } from '@sgrud/core';

const digest: Kernel.Digest = 'sha256-[...]';

Generated using TypeDoc