Skip to content

Add TypeScript declaration file for messageformat module#63025

Closed
aprameyak wants to merge 1 commit into
microsoft:mainfrom
aprameyak:main
Closed

Add TypeScript declaration file for messageformat module#63025
aprameyak wants to merge 1 commit into
microsoft:mainfrom
aprameyak:main

Conversation

@aprameyak

Copy link
Copy Markdown

This PR adds a custom TypeScript declaration file for the messageformat JavaScript library, which does not provide its own type definitions. By declaring the module "messageformat" with proper types, this change allows TypeScript projects to import and use the library without compilation errors. It defines the Msg type for compiled messages and the MessageFormat interface with a constructor and compile method, and provides a default export for convenient usage. This change ensures compatibility with TypeScript 2.8+ and can be placed under src/types/messageformat/index.d.ts for custom type resolution. Resolves #23185.

@github-project-automation github-project-automation Bot moved this to Not started in PR Backlog Jan 21, 2026
@typescript-bot typescript-bot added the For Backlog Bug PRs that fix a backlog bug label Jan 21, 2026
@jakebailey

Copy link
Copy Markdown
Member

This is not what #23185 was about, this was only an example

@jakebailey jakebailey closed this Jan 21, 2026
@github-project-automation github-project-automation Bot moved this from Not started to Done in PR Backlog Jan 21, 2026
@microsoft microsoft locked as resolved and limited conversation to collaborators Jul 20, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

For Backlog Bug PRs that fix a backlog bug

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Cannot Load Custom Definition File in Repository

3 participants