Closed vecerek closed 3 weeks ago
No response
enforceExamples: true
@example
With the above configuration, you will get the expected Missing @example tag in ... error message.
Missing @example tag in ...
const a: number = "42"
Docgen should fail with a compilation error on the added @example under the namespace JSDoc.
Docgen succeeds, rendering an invalid TS example.
Either typecheck examples under namespaces, too, or do not enforce examples on namespaces regardless of the configuration.
What version of Effect is running?
No response
What steps can reproduce the bug?
enforceExamples: true
in the config@example
)With the above configuration, you will get the expected
Missing @example tag in ...
error message.@example
to your namespace JSDoc, but make sure it has a compilation error in it, something like:What is the expected behavior?
Docgen should fail with a compilation error on the added
@example
under the namespace JSDoc.What do you see instead?
Docgen succeeds, rendering an invalid TS example.
Additional information
Either typecheck examples under namespaces, too, or do not enforce examples on namespaces regardless of the configuration.