backend-plugin-api: tighten internal any usage (#33867)
* backend-plugin-api: tighten internal any usage Replace internal `any` type annotations with proper types: - Use `'root' | 'plugin'` union in DepsToInstances conditional type and createServiceRef implementation signature - Use Error type guard with object cast fallback in isDatabaseConflictError instead of `as any` Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com> Made-with: Cursor * Use isError in isDatabaseConflictError Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com> Made-with: Cursor * Update changeset wording per review feedback Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com> Made-with: Cursor --------- Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/backend-plugin-api': patch
|
||||
---
|
||||
|
||||
Added stricter type checks in `isDatabaseConflictError`.
|
||||
Reference in New Issue
Block a user