Update typings.

master
Icedream 2021-01-03 20:26:31 +01:00
parent 4118c77b89
commit 7f2737cb82
4 changed files with 20 additions and 1 deletions

View File

@ -24,6 +24,9 @@
],
"baseUrl": ".",
"paths": {
"react-intl-formatted-duration": [
"typings/react-intl-formatted-duration"
],
"url-slug": [
"typings/url-slug"
],

View File

@ -1 +0,0 @@
declare module 'react-intl-formatted-duration';

View File

@ -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<FormattedDurationProps> {}
static const TIMER_FORMAT: string;
export default FormattedDuration;
}

View File

@ -6900,6 +6900,7 @@ export interface VideoJsPlayerOptions extends videojs.ComponentOptions {
src?: string;
techOrder?: string[];
tracks?: videojs.TextTrackOptions[];
volume?: number;
width?: number;
}