Skip to content

ApiIntegrationConfig

Defined in: packages/core/src/types.ts:470

optional clientPackages: string[]

Defined in: packages/core/src/types.ts:477

Package names to scan for API client imports. These should match the import paths used in your code.

["@/api/generated"]
["@company/backend-client", "@company/auth-client"]

optional extractApiName: (importName) => string

Defined in: packages/core/src/types.ts:485

Optional transform function to convert import name to dependsOn format. If not provided, the import name is used as-is.

string

string

(name) => name.replace(/^use/, "")
(name) => `API.${name}`

optional openapi: OpenApiConfig

Defined in: packages/core/src/types.ts:493

OpenAPI specification configuration for validating dependsOn references. When configured, screenbook lint will validate that dependsOn values match operationIds or HTTP method + path from the OpenAPI spec.

{ sources: ["./openapi.yaml"] }