Reports exported APIs whose public surface exposes a less stable type
| Property | Value |
|---|---|
| Category | Maintainers |
| Default severity | off |
| Fixable | No |
| Effect versions | v4 |
| Diagnostic codes | TS377137, TS377138 |
| Language Service name | apiStabilityLeak |
| Oxlint name | effecttsgo/api-stability-leak |
/** @stability experimental */
export interface PreviewExperimental {
value: string
}
export interface PreviewStable {
/**
^^^^^^^^^^^^^ effecttsgo(api-stability-leak): `effect-v4-tests/preview#PreviewStable` exposes `PreviewExperimental`, an experimental API.
*/
leaked: PreviewExperimental
}See the Language Service setup guide for installation instructions.
See the Oxlint setup guide for installation and patching instructions.
{
"$schema": "./node_modules/@effect/tsgo/oxlint-schema.json",
"options": {
"typeAware": true
},
"plugins": ["effecttsgo"],
"rules": {
"effecttsgo/api-stability-leak": "warn"
}
}
{ "$schema": "./node_modules/@effect/tsgo/schema.json", "compilerOptions": { "plugins": [ { "name": "@effect/language-service", "diagnosticSeverity": { "apiStabilityLeak": "warning" } } ] } }