Skip to content

[TypeScript] Missing typedef error #133

@sinedied

Description

@sinedied

When using the SDK in a TypeScript project, you get this error unless you set "skipLibCheck": true in your tsconfig.json file:

../../node_modules/@github/copilot-sdk/dist/session.d.ts:5:40 - error TS2307: Cannot find module 'vscode-jsonrpc/node' or its corresponding type declarations.

5 import type { MessageConnection } from "vscode-jsonrpc/node";
                                         ~~~~~~~~~~~~~~~~~~~~~


Found 1 error in ../../node_modules/@github/copilot-sdk/dist/session.d.ts:5

Seems like a type export is missing.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions