Skip to content

Conversation

@ev-sc
Copy link
Member

@ev-sc ev-sc commented Jan 29, 2026

This pull request introduces a TypeScript SDK publishing workflow and formalizes the public API types for external consumption. It adds a new GitHub Actions workflow to automate building and syncing TypeScript types to a separate SDK repository, documents the SDK in the main README, and creates a dedicated build configuration for API types. The most important changes are grouped below:

SDK Publishing Automation:

  • Adds a new GitHub Actions workflow (.github/workflows/publish-sdk.yml) that builds API types, prepares the SDK package, generates documentation, bumps the version, and pushes updates to the ts-mapped-sdk repository.

Public API Types:

  • Creates and documents a set of public TypeScript types in src/api/index.ts for external consumers, including types for GeoJSON API responses, filters, and geocoding results.

Build and Packaging:

  • Adds a new npm script build:api to generate type declarations using a dedicated TypeScript config.
  • Introduces tsconfig.api.json to control the emission of declaration files for the SDK.

Documentation:

  • Updates the main README.md to include installation and usage instructions for the new TypeScript SDK, referencing the new package and types.

ev-sc added 5 commits January 29, 2026 17:47
- Add publish-sdk.yml workflow that triggers on changes to src/api/**
- Add API types in src/api/index.ts with full JSDoc documentation
- Add tsconfig.api.json for building type declarations
- Add build:api script to package.json
- Update README with SDK installation instructions
- Workflow automatically syncs types to commonknowledge/ts-mapped-sdk on push to main
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request introduces an automated TypeScript SDK publishing workflow to distribute type definitions for the ts-mapped REST API. The SDK provides type-safe interfaces for external consumers to interact with the GeoJSON API endpoint.

Changes:

  • Adds automated GitHub Actions workflow to build and publish TypeScript types to a separate SDK repository
  • Creates comprehensive type definitions and documentation for the public API
  • Adds TypeScript build configuration for generating declaration files

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 16 comments.

Show a summary per file
File Description
.github/workflows/publish-sdk.yml Automates building, versioning, and publishing SDK to separate repository
src/api/index.ts Defines public TypeScript interfaces for GeoJSON API, filters, and query parameters
src/api/README.md Comprehensive usage guide with examples for SDK consumers
tsconfig.api.json TypeScript configuration for generating declaration files only
package.json Adds build:api script to generate type declarations
README.md Documents SDK installation and usage for API consumers
.gitignore Excludes generated dist directory from version control

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

ev-sc and others added 3 commits January 29, 2026 19:38
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@ev-sc ev-sc merged commit aa53a36 into main Jan 29, 2026
1 check failed
@ev-sc ev-sc deleted the feature/sdk-publish-workflow branch January 29, 2026 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants