Skip to content

Commit

Permalink
refactor: Migrate index and messages files of library components to TS
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisChV committed Jul 11, 2024
1 parent 32838a3 commit 7f3444e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
// @ts-check
// eslint-disable-next-line import/prefer-default-export
export { default as LibraryComponents } from './LibraryComponents';
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
// @ts-check
import { defineMessages } from '@edx/frontend-platform/i18n';
import { defineMessages as _defineMessages } from '@edx/frontend-platform/i18n';
import type { defineMessages as defineMessagesType } from 'react-intl';

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

const messages = defineMessages({
menuEdit: {
Expand Down

0 comments on commit 7f3444e

Please sign in to comment.