Skip to content

Commit

Permalink
Rewrite some details on JSDOC for media element types redefinitions
Browse files Browse the repository at this point in the history
  • Loading branch information
peaBerberian committed Mar 14, 2024
1 parent 750d592 commit 3872914
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions src/compat/browser_compatibility_types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,8 @@ export interface ISourceBufferListEventMap {
}

/**
* More restrictive and type-compatible with the `SourceBufferList` type (i.e. a
* `SourceBufferList` is a valid `ISourceBufferList`), the `ISourceBufferList`
* type allows to:
* Type-compatible with the `SourceBufferList` type (i.e. a `SourceBufferList`
* is a valid `ISourceBufferList`), the `ISourceBufferList` type allows to:
*
* - re-define some attributes or methods in cases where we detected that some
* platforms have a different implementation.
Expand All @@ -120,8 +119,8 @@ export interface IMediaSourceEventMap {
}

/**
* More restrictive and type-compatible with the `MediaSource` type (i.e. a
* `MediaSource` is a valid `IMediaSource`), the `IMediaSource` type allows to:
* Type-compatible with the `MediaSource` type (i.e. a `MediaSource` is a valid
* `IMediaSource`), the `IMediaSource` type allows to:
*
* - re-define some attributes or methods in cases where we detected that some
* platforms have a different implementation.
Expand Down Expand Up @@ -159,9 +158,8 @@ export interface ISourceBufferEventMap {
}

/**
* More restrictive and type-compatible with the `SourceBuffer` type (i.e. a
* `SourceBuffer` is a valid `ISourceBuffer`), the `ISourceBuffer` type allows
* to:
* Type-compatible with the `SourceBuffer` type (i.e. a `SourceBuffer` is a valid
* `ISourceBuffer`), the `ISourceBuffer` type allows to:
*
* - re-define some attributes or methods in cases where we detected that some
* platforms have a different implementation.
Expand Down Expand Up @@ -216,9 +214,8 @@ export interface IMediaElementEventMap {
}

/**
* More restrictive and type-compatible with the `HTMLMediaElement` type (i.e. a
* `HTMLMediaElement` is a valid `IMediaElement`), the `IMediaElement` type
* allows to:
* Type-compatible with the `HTMLMediaElement` type (i.e. a `HTMLMediaElement` is
* a valid `IMediaElement`), the `IMediaElement` type allows to:
*
* - re-define some attributes or methods in cases where we detected that some
* platforms have a different implementation.
Expand Down

0 comments on commit 3872914

Please sign in to comment.