Skip to content

feat(get-os-info): export OsInfo type MONGOSH-3489#823

Merged
nbbeeken merged 1 commit into
mainfrom
MONGOSH-3489
Jul 16, 2026
Merged

feat(get-os-info): export OsInfo type MONGOSH-3489#823
nbbeeken merged 1 commit into
mainfrom
MONGOSH-3489

Conversation

@nbbeeken

Copy link
Copy Markdown
Collaborator

Description

Export the type def for the return type of getOsInfo

Checklist

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR makes the return-type definition for getOsInfo part of the public API surface of the get-os-info package by exporting the relevant TypeScript types from both the implementation module and the package entrypoint.

Changes:

  • Export LinuxInfo, DarwinInfo, and OsInfo types from src/get-os-info.ts.
  • Re-export those types from src/index.ts via a type-only barrel export.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/get-os-info/src/index.ts Re-exports OsInfo, LinuxInfo, and DarwinInfo from the package entrypoint.
packages/get-os-info/src/get-os-info.ts Marks the LinuxInfo, DarwinInfo, and OsInfo types as exported so they can be referenced by consumers.

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

@nbbeeken
nbbeeken merged commit 8ee49db into main Jul 16, 2026
9 checks passed
@nbbeeken
nbbeeken deleted the MONGOSH-3489 branch July 16, 2026 15:00
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.

3 participants