Harmonize phantom .T getter behavior between ExtensionPoint and ServiceRef

Both `createExtensionPoint` and `createServiceRef` now consistently return
`null` from the phantom `.T` getter instead of throwing. Added `toJSON()` to
`ExtensionPoint` for parity with `ServiceRef`.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Made-with: Cursor
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Made-with: Cursor
This commit is contained in:
Patrik Oldsberg
2026-04-13 19:48:42 +02:00
parent 925a63e27e
commit 213ebe77cc
5 changed files with 21 additions and 9 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/backend-plugin-api': patch
---
Harmonized the phantom `.T` getter on `ExtensionPoint` to consistently return `null` instead of throwing.