Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove the obsolete defineMessages function from the typings. #1179

Merged
merged 1 commit into from
Jan 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions packages/macro/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,6 @@ declare module "@lingui/macro" {
choices: Record<string, string> & BasicType
): string

/**
* Defines multiple messages for extraction
*/
export function defineMessages<M extends Record<string, MessageDescriptor>>(
messages: M
): M

/**
* Define a message for later use
*
Expand Down
9 changes: 0 additions & 9 deletions packages/macro/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,15 +148,6 @@ export function selectOrdinal(
*/
export function select(value: string, choices: ChoiceOptions): string

/**
* Defines multiple messages for extraction
*
* @see {@link defineMessage} for more details
*/
export function defineMessages<M extends Record<string, MessageDescriptor>>(
messages: M
): M

/**
* Define a message for later use
*
Expand Down
1 change: 0 additions & 1 deletion packages/macro/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ function alreadyVisited(path) {

function getMacroType(tagName) {
switch (tagName) {
case "defineMessages":
case "defineMessage":
case "arg":
case "t":
Expand Down