Use interface and not implementation in ApiRef<T>

Closes #4404

Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
This commit is contained in:
Oliver Sand
2021-04-22 12:41:53 +02:00
parent 74a5b00eb6
commit f09f6a166b
8 changed files with 296 additions and 255 deletions
+12
View File
@@ -0,0 +1,12 @@
---
'@backstage/plugin-techdocs': patch
---
Make `techdocsStorageApiRef` and `techdocsApiRef` use interfaces instead of the
actual implementation classes.
This renames the classes `TechDocsApi` to `TechDocsClient` and `TechDocsStorageApi`
to `TechDocsStorageClient` and renames the interfaces `TechDocs` to `TechDocsApi`
and `TechDocsStorage` to `TechDocsStorageApi` to comply the pattern elsewhere in
the project. This also fixes the types returned by some methods on those
interfaces.