انتقل إلى المحتوى الرئيسي

Function: secretRef()

secretRef(): TUnsafe<SecretRefValue>

Defined in: packages/config/src/schema.ts:33

A schema for a secret://<namespace>/<name> reference. Config holds the reference, never the value; after loading, the field is a Secret<string>.

Do not place it inside a union branch: resolution walks properties and items only. An optional field is fine.

Returns​

TUnsafe<SecretRefValue>