refactor(techdocs): deprecate ShouldBuildParameters type

Signed-off-by: Phil Kuang <pkuang@factset.com>
This commit is contained in:
Phil Kuang
2023-10-24 13:06:05 -04:00
parent 31458f5b63
commit b99e29ab8f
6 changed files with 15 additions and 27 deletions
+1 -6
View File
@@ -28,7 +28,7 @@ export class DirectoryPreparer implements PreparerBase {
// @public
export interface DocsBuildStrategy {
// (undocumented)
shouldBuild(params: ShouldBuildParameters): Promise<boolean>;
shouldBuild(params: { entity: Entity }): Promise<boolean>;
}
// @public
@@ -233,11 +233,6 @@ export type ReadinessResponse = {
// @public
export type RemoteProtocol = 'url' | 'dir';
// @public
export type ShouldBuildParameters = {
entity: Entity;
};
// @public
export type SupportedGeneratorKey = 'techdocs' | string;
+1 -10
View File
@@ -48,20 +48,11 @@ export interface TechDocsDocument extends IndexableDocument {
path: string;
}
/**
* Parameters passed to the shouldBuild method on the DocsBuildStrategy interface
*
* @public
*/
export type ShouldBuildParameters = {
entity: Entity;
};
/**
* A strategy for when to build TechDocs locally, and when to skip building TechDocs (allowing for an external build)
*
* @public
*/
export interface DocsBuildStrategy {
shouldBuild(params: ShouldBuildParameters): Promise<boolean>;
shouldBuild(params: { entity: Entity }): Promise<boolean>;
}