Azure / Azure/AppConfiguration-JavaScriptProvider
Custom secretResolver should return unknown/any type?
- 主要語言
- TypeScript
- 星號
- 18
- 分支
- 13
- 平均合併
- 1 天 5 小時
- 30 天內合併 PR
- 4
描述
Use `KeyVaultOptions.secretResolver` to resolve the secret reference with customized logic, e.g. parse JSON string into an object.
```ts
/**
* Specifies the callback used to resolve key vault references that have no applied SecretClient.
* @param keyVaultReference The Key Vault reference to resolve.
* @returns The secret value.
*/
secretResolver?: (keyVaultReference: URL) => string | Promise;
```
Note: Here I think `secretResolver` should return `known` type instead of `string`, as we allow values of the config map to be any type.
_Originally posted by @Eskibear in https://github.com/Azure/AppConfiguration-JavaScriptProvider/issues/78#issuecomment-2287726906_
貢獻指南
這個儲存庫沒有索引到貢獻指南
評估
這個 Issue 還沒有評估資料。