Simplified the parseEntityRef function

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2022-02-23 13:28:54 +01:00
parent 0ba3149bee
commit 68f0871b76
6 changed files with 41 additions and 114 deletions
+8
View File
@@ -0,0 +1,8 @@
---
'@backstage/catalog-model': minor
---
**BREAKING**: Simplified the `parseEntityRef` function to _always_ either return
a complete `EntityName`, complete with both kind, namespace and name, or throw
an error if it for some reason did not have enough information to form that
result. This makes its usage and its type declaration vastly simpler.