Skip to content
This repository was archived by the owner on Mar 12, 2026. It is now read-only.

docs: Document doc-detective-common public API exports#22

Closed
promptless[bot] wants to merge 1 commit intomainfrom
promptless/doc-common-type-exports
Closed

docs: Document doc-detective-common public API exports#22
promptless[bot] wants to merge 1 commit intomainfrom
promptless/doc-common-type-exports

Conversation

@promptless
Copy link
Contributor

@promptless promptless bot commented Mar 9, 2026

Open this suggestion in Promptless to view citations and reasoning process

Adds documentation for the doc-detective-common package's public API, including the newly exported TypeScript types (Specification, Test, Step, Context, Config, Report) that allow consumers to import canonical types directly instead of maintaining parallel type definitions.

Trigger Events

doc-detective/doc-detective PR #194: Export generated types (Specification, Test, Step, Context, Config, Report) from main entry point

Promptless Research (1 GitHub PR)

Agent Response

I've completed the documentation update for PR #194. Here's a summary:

Documentation Changes

Updated file: fern/pages/contribute/repos/doc-detective-common.md

I added a new Public API section to the doc-detective-common package documentation that covers:

  1. Functions and utilities - Documents the existing exports (schemas, validate, detectTests)
  2. TypeScript types - Documents the 6 newly exported types with a code example and descriptions:
    • Specification - A test specification containing tests and configuration
    • Test - An individual test with steps
    • Step - A single action within a test
    • Context - Browser/platform context for running tests
    • Config - Configuration options
    • Report - Test result report

The documentation includes a TypeScript import example so consumers know how to use these types:

import type { Specification, Test, Step, Context, Config, Report } from 'doc-detective-common';

This update helps TypeScript consumers understand what's available from the package and encourages them to use the canonical types rather than maintaining parallel type definitions that could drift from the schema.


Tip: See how your feedback shapes Promptless in Agent Knowledge Base 🧠

- `validate`: Schema validation logic
- `detectTests`: Logic to detect tests in documentation files

### TypeScript types
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Citation: PR #194 adds type-only re-exports in src/common/src/index.ts for 6 core structural types: Specification, Test, Step, Context, Config, Report. These types come from src/common/src/types/generated/ and are now publicly accessible.
View source

@github-actions
Copy link

github-actions bot commented Mar 9, 2026

@promptless promptless bot closed this Mar 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants