diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json index 843acb6..87fa979 100644 --- a/frontend/tsconfig.json +++ b/frontend/tsconfig.json @@ -24,6 +24,9 @@ ], "baseUrl": ".", "paths": { + "react-intl-formatted-duration": [ + "typings/react-intl-formatted-duration" + ], "url-slug": [ "typings/url-slug" ], diff --git a/frontend/typings/react-intl-formatted-duration.d.ts b/frontend/typings/react-intl-formatted-duration.d.ts deleted file mode 100644 index a88ccaf..0000000 --- a/frontend/typings/react-intl-formatted-duration.d.ts +++ /dev/null @@ -1 +0,0 @@ -declare module 'react-intl-formatted-duration'; diff --git a/frontend/typings/react-intl-formatted-duration/index.d.ts b/frontend/typings/react-intl-formatted-duration/index.d.ts new file mode 100644 index 0000000..a5e29c5 --- /dev/null +++ b/frontend/typings/react-intl-formatted-duration/index.d.ts @@ -0,0 +1,16 @@ +declare module 'react-intl-formatted-duration' { + export interface FormattedDurationProps { + seconds: number; + textComponent?: React.ElementType; + valueComponent?: React.ElementType; + format?: string; + unitDisplay?: 'long' | 'short' | 'narrow'; + } + + // eslint-disable-next-line react/prefer-stateless-function + class FormattedDuration extends React.Component {} + + static const TIMER_FORMAT: string; + + export default FormattedDuration; +} diff --git a/frontend/typings/video.js/index.d.ts b/frontend/typings/video.js/index.d.ts index 46a0a42..5479a24 100644 --- a/frontend/typings/video.js/index.d.ts +++ b/frontend/typings/video.js/index.d.ts @@ -6900,6 +6900,7 @@ export interface VideoJsPlayerOptions extends videojs.ComponentOptions { src?: string; techOrder?: string[]; tracks?: videojs.TextTrackOptions[]; + volume?: number; width?: number; }