Skip to content

Commit

Permalink
fix: defineMessage has types now
Browse files Browse the repository at this point in the history
  • Loading branch information
pomegranited committed Oct 14, 2024
1 parent a0e0d84 commit 92aaa33
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/library-authoring/library-team/messages.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { defineMessages as _defineMessages } from '@edx/frontend-platform/i18n';
import type { defineMessages as defineMessagesType } from 'react-intl';
import { defineMessages } from '@edx/frontend-platform/i18n';

// frontend-platform currently doesn't provide types... do it ourselves.
const defineMessages = _defineMessages as typeof defineMessagesType;

Check failure on line 4 in src/library-authoring/library-team/messages.ts

View workflow job for this annotation

GitHub Actions / tests (20)

'defineMessages' is already defined
Expand Down

0 comments on commit 92aaa33

Please sign in to comment.