Version Packages
This commit is contained in:
committed by
Fredrik Adelöw
parent
a19d2a3f36
commit
4ae0467c2f
@@ -1,5 +1,19 @@
|
||||
# @backstage/config
|
||||
|
||||
## 0.1.3
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- a1f5e6545: Adds an optional type to `config.get` & `config.getOptional`. This avoids the need for casting. For example:
|
||||
|
||||
```ts
|
||||
const config = useApi(configApiRef);
|
||||
|
||||
const myConfig = config.get<SomeTypeDefinition>('myPlugin.complexConfig');
|
||||
// vs
|
||||
const myConfig config.get('myPlugin.complexConfig') as SomeTypeDefinition;
|
||||
```
|
||||
|
||||
## 0.1.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@backstage/config",
|
||||
"description": "Config API used by Backstage core, backend, and CLI",
|
||||
"version": "0.1.2",
|
||||
"version": "0.1.3",
|
||||
"private": false,
|
||||
"publishConfig": {
|
||||
"access": "public",
|
||||
|
||||
Reference in New Issue
Block a user