MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / isVersionMetadata

Function isVersionMetadata

packages/cloudflare/src/options.ts:17–19  ·  view source on GitHub ↗

* Checks if the value is a valid CF_VERSION_METADATA binding.

(value: unknown)

Source from the content-addressed store, hash-verified

15 * Checks if the value is a valid CF_VERSION_METADATA binding.
16 */
17function isVersionMetadata(value: unknown): value is CfVersionMetadata {
18 return typeof value === 'object' && value !== null && 'id' in value && typeof value.id === 'string';
19}
20
21function getEnvVar<T extends Record<string, unknown>>(env: unknown, varName: keyof T): string | undefined {
22 return typeof env === 'object' && env !== null && varName in env && typeof (env as T)[varName] === 'string'

Callers 1

getFinalOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected