-
Notifications
You must be signed in to change notification settings - Fork 14
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
Fix API docs problems #283
Conversation
const handleBitmovinNativeOfflineEvent = ( | ||
data: BitmovinNativeOfflineEventData, | ||
listeners: Set<OfflineContentManagerListener> | ||
) => { | ||
listeners.forEach((listener) => { | ||
if (!listener) return; | ||
|
||
if (data.eventType === OfflineEventType.onCompleted) { | ||
listener.onCompleted?.(data); | ||
} else if (data.eventType === OfflineEventType.onError) { | ||
listener.onError?.(data); | ||
} else if (data.eventType === OfflineEventType.onProgress) { | ||
listener.onProgress?.(data); | ||
} else if (data.eventType === OfflineEventType.onOptionsAvailable) { | ||
listener.onOptionsAvailable?.(data); | ||
} else if (data.eventType === OfflineEventType.onDrmLicenseUpdated) { | ||
listener.onDrmLicenseUpdated?.(data); | ||
} else if (data.eventType === OfflineEventType.onDrmLicenseExpired) { | ||
listener.onDrmLicenseExpired?.(data); | ||
} else if (data.eventType === OfflineEventType.onSuspended) { | ||
listener.onSuspended?.(data); | ||
} else if (data.eventType === OfflineEventType.onResumed) { | ||
listener.onResumed?.(data); | ||
} else if (data.eventType === OfflineEventType.onCanceled) { | ||
listener.onCanceled?.(data); | ||
} | ||
}); | ||
}; | ||
|
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.
This was just moved to avoid exporting it.
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.
Got rid of MakeRequired
as we don't need it at all.
src/utils.ts
Outdated
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.
Got rid of MakeRequired
as we don't need it at all.
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.
Nice improvements 👍
I added one suggestion, let me know what you think about it 🙂
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.
Nice 👍
Description
There are warnings when generating docs using
yarn docs
.Changes
SideLoadedSubtitleTrack
API to provide withoutMakeRequired
hackChecklist
CHANGELOG
entry - not applicable