fix api reports

Signed-off-by: John Philip <jphilip@spotify.com>
This commit is contained in:
John Philip
2024-06-22 21:14:24 -04:00
parent 9ecf5fdcb9
commit fea739f1ca
3 changed files with 25 additions and 6 deletions
@@ -23,4 +23,5 @@ export type {
MigrateRequest,
ReadinessResponse,
TechDocsMetadata,
PublisherBuilder,
} from './types';
@@ -32,13 +32,11 @@ import {
* Uses `techdocs.publisher.type`.
* @public
*/
type CustomPublisherType = PublisherType | 'techdocs';
export class Publisher implements PublisherBuilder {
private publishers: Map<CustomPublisherType, PublisherBase> = new Map();
private publishers: Map<PublisherType | 'techdocs', PublisherBase> =
new Map();
register(type: CustomPublisherType, publisher: PublisherBase): void {
register(type: PublisherType | 'techdocs', publisher: PublisherBase): void {
this.publishers.set(type, publisher);
}