- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 332
Chore: Update All Dependencies and Resolve TypeScript & ESLint Issues #492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
… of an assignment expression, as it is simpler to read @typescript-eslint/prefer-nullish-coalescing
… value of the string @typescript-eslint/no-unnecessary-type-conversion
…t from "react"'; @eslint-react/prefer-namespace-import & Prefer importing React DOM via a namespace import @eslint-react/dom/prefer-namespace-import
│ React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects.
… from Uint8Array to ArrayBuffer
… 'initSegment'. In the code we use instance of class MediaSegment which extends Fragment and overrides sn type to number
…gmentReference[]'.
  Type 'SegmentReference | null' is not assignable to type 'SegmentReference'.
    Type 'null' is not assignable to type 'SegmentReference'
    …rayBuffer'.
  The types of 'slice(...)[Symbol.toStringTag]' are incompatible between these types.
    Type '"Uint8Array"' is not assignable to type '"ArrayBuffer"'.
    | start: startTime, | ||
| end: endTime, | ||
| } = fragment; | ||
| if (sn === "initSegment") return; | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fragment here is an instance of class MediaFragment.
It overrides type of class Fragment in which sn could be number | "initSegment"
|  | ||
| get data(): ArrayBuffer { | ||
| if (!this.finalData) this.finalData = Utils.joinChunks(this.bytes); | ||
| this.finalData ??= Utils.joinChunks(this.bytes).buffer as ArrayBuffer; | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uint8Array.buffer is typed as ArrayBufferLike, which means it could be either an ArrayBuffer or a SharedArrayBuffer.
However, in this case, it will always be a regular ArrayBuffer based on how joinChunks is implemented.
Background Information
This pull request includes dependency updates, ESLint configuration improvements, ESLint warning fixes, and type error fixes.