Skip to content

Commit

Permalink
fix: remove the obsolete defineMessages function from the typings. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
cmlenz authored Jan 1, 2022
1 parent 5feb120 commit 19b032f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 17 deletions.
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

0 comments on commit 19b032f

Please sign in to comment.