Shumoku Docs

Search documentation

Shared docs and current release

Loading search…

日本語

@shumoku/core · 0.4.0 · function

isSecretProp

Source

A field is a write-only secret if it declares `secret: true`. `format: 'password'` is honoured too so external plugins that predate the flag keep working; new schemas should set `secret: true`.

isSecretProp(prop: PluginConfigProperty): boolean

Parameters

Parameter Type Description Default
prop PluginConfigProperty No additional description.

Returns

boolean

libs/@shumoku/core/src/plugin-kit/secrets.ts:22