Skip to content

Commit

Permalink
Added link explaining the layering PDP requirements in TSDocs
Browse files Browse the repository at this point in the history
  • Loading branch information
tjcouch-sil committed Jun 18, 2024
1 parent 35c7df5 commit 9f3bfa5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
16 changes: 12 additions & 4 deletions lib/papi-dts/papi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3817,7 +3817,9 @@ declare module 'shared/models/project-data-provider-engine-factory.model' {
* {@link IBaseProjectDataProvider} and {@link ProjectDataProviderInterfaces} for more information.
*
* WARNING: For Layering PDPFs, `getAvailableProjects` has very specific requirements that
* **absolutely must** be met.
* **absolutely must** be met. Please see
* {@link IProjectDataProviderEngineFactory.getAvailableProjects} for more information on the
* requirements.
*
* To make creating a Layering PDPF easier, you can extend
* {@link LayeringProjectDataProviderEngineFactory}, which automatically fulfills the special
Expand Down Expand Up @@ -3874,7 +3876,9 @@ declare module 'shared/models/project-data-provider-engine-factory.model' {
* easier.
*
* Extending this class automatically fulfills the special requirements for Layering PDPfs, so we
* highly recommend extending this class.
* highly recommend extending this class. Please see
* {@link IProjectDataProviderEngineFactory.getAvailableProjects} for more information on the
* requirements.
*/
export abstract class LayeringProjectDataProviderEngineFactory<
SupportedProjectInterfaces extends ProjectInterfaces[],
Expand Down Expand Up @@ -5489,7 +5493,9 @@ declare module '@papi/backend' {
* easier.
*
* Extending this class automatically fulfills the special requirements for Layering PDPfs, so we
* highly recommend extending this class.
* highly recommend extending this class. Please see
* {@link IProjectDataProviderEngineFactory.getAvailableProjects} for more information on the
* requirements.
*/
LayeringProjectDataProviderEngineFactory: typeof PapiLayeringProjectDataProviderEngineFactory;
/** This is just an alias for internet.fetch */
Expand Down Expand Up @@ -5629,7 +5635,9 @@ declare module '@papi/backend' {
* easier.
*
* Extending this class automatically fulfills the special requirements for Layering PDPfs, so we
* highly recommend extending this class.
* highly recommend extending this class. Please see
* {@link IProjectDataProviderEngineFactory.getAvailableProjects} for more information on the
* requirements.
*/
export const LayeringProjectDataProviderEngineFactory: typeof PapiLayeringProjectDataProviderEngineFactory;
/** This is just an alias for internet.fetch */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ import { escapeStringRegexp } from 'platform-bible-utils';
* {@link IBaseProjectDataProvider} and {@link ProjectDataProviderInterfaces} for more information.
*
* WARNING: For Layering PDPFs, `getAvailableProjects` has very specific requirements that
* **absolutely must** be met.
* **absolutely must** be met. Please see
* {@link IProjectDataProviderEngineFactory.getAvailableProjects} for more information on the
* requirements.
*
* To make creating a Layering PDPF easier, you can extend
* {@link LayeringProjectDataProviderEngineFactory}, which automatically fulfills the special
Expand Down Expand Up @@ -60,7 +62,9 @@ export interface IProjectDataProviderEngineFactory<
* easier.
*
* Extending this class automatically fulfills the special requirements for Layering PDPfs, so we
* highly recommend extending this class.
* highly recommend extending this class. Please see
* {@link IProjectDataProviderEngineFactory.getAvailableProjects} for more information on the
* requirements.
*/
export abstract class LayeringProjectDataProviderEngineFactory<
SupportedProjectInterfaces extends ProjectInterfaces[],
Expand Down

0 comments on commit 9f3bfa5

Please sign in to comment.