-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
Domain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptExperience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsSuggestionAn idea for TypeScriptAn idea for TypeScript
Description
The function URL.createObjectURL
currently has an argument of type any
. However, this is not in line with the types it would like to be parsed.
I suggest changing the argument from type object: any
to object: File | Blob | MediaSource
.
This would make make the type more helpful and make it inline with the MDN docs.
I might be missing a type of null
or undefined
on the union type but I'm not sure if there is a use case for this.
GZaccaroni, TechQuery, hamzamubeen-sl2, jeremytowne, jordienr and 2 more
Metadata
Metadata
Assignees
Labels
Domain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptExperience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsSuggestionAn idea for TypeScriptAn idea for TypeScript