File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ _Parameters_
3838
3939_ Returns_
4040
41- - ` ? File` : The file for the blob URL.
41+ - ` ( File|undefined) ` : The file for the blob URL.
4242
4343<a name =" isBlobURL " href =" #isBlobURL " >#</a > ** isBlobURL**
4444
Original file line number Diff line number Diff line change 33 */
44const { createObjectURL, revokeObjectURL } = window . URL ;
55
6+ /**
7+ * @type {{[key: string]: File|undefined} }
8+ */
69const cache = { } ;
710
811/**
@@ -27,7 +30,7 @@ export function createBlobURL( file ) {
2730 *
2831 * @param {string } url The blob URL.
2932 *
30- * @return {? File } The file for the blob URL.
33+ * @return {File|undefined } The file for the blob URL.
3134 */
3235export function getBlobByURL ( url ) {
3336 return cache [ url ] ;
Original file line number Diff line number Diff line change 1212
1313 /* Strict Type-Checking Options */
1414 "strict" : true , /* Enable all strict type-checking options. */
15+ "strictNullChecks" : true ,
1516 "noImplicitAny" : false , /* Raise error on expressions and declarations with an implied 'any' type. */
1617
1718 /* Additional Checks */
2122 "noFallthroughCasesInSwitch" : true , /* Report errors for fallthrough cases in switch statement. */
2223 },
2324 "include" : [
25+ " ./packages/blob/**/*.js" ,
2426 " ./packages/dom-ready/**/*.js" ,
2527 " ./packages/i18n/**/*.js" ,
2628 " ./packages/is-shallow-equal/**/*.js" ,
You can’t perform that action at this time.
0 commit comments