@@ -41,30 +41,30 @@ interface EmitOptions {
4141async function emitFlavor (
4242 webidl : Browser . WebIdl ,
4343 forceKnownTypes : Set < string > ,
44- options : EmitOptions ,
44+ options : EmitOptions
4545) {
4646 const exposed = getExposedTypes ( webidl , options . global , forceKnownTypes ) ;
4747 mergeNamesakes ( exposed ) ;
4848
4949 const result = emitWebIdl ( exposed , options . global [ 0 ] , "" ) ;
5050 await fs . writeFile (
5151 new URL ( `${ options . name } .generated.d.ts` , options . outputFolder ) ,
52- result ,
52+ result
5353 ) ;
5454
5555 const iterators = emitWebIdl ( exposed , options . global [ 0 ] , "sync" ) ;
5656 await fs . writeFile (
5757 new URL ( `${ options . name } .iterable.generated.d.ts` , options . outputFolder ) ,
58- iterators ,
58+ iterators
5959 ) ;
6060
6161 const asyncIterators = emitWebIdl ( exposed , options . global [ 0 ] , "async" ) ;
6262 await fs . writeFile (
6363 new URL (
6464 `${ options . name } .asynciterable.generated.d.ts` ,
65- options . outputFolder ,
65+ options . outputFolder
6666 ) ,
67- asyncIterators ,
67+ asyncIterators
6868 ) ;
6969}
7070
@@ -118,7 +118,7 @@ async function emitDom() {
118118
119119 const transferables = widlStandardTypes . flatMap ( ( st ) => {
120120 return Object . values ( st . browser . interfaces ?. interface ?? { } ) . filter (
121- ( i ) => i . transferable ,
121+ ( i ) => i . transferable
122122 ) ;
123123 } ) ;
124124
@@ -152,12 +152,12 @@ async function emitDom() {
152152
153153 function mergeApiDescriptions (
154154 idl : Browser . WebIdl ,
155- descriptions : Record < string , string > ,
155+ descriptions : Record < string , string >
156156 ) {
157157 const namespaces = arrayToMap (
158158 idl . namespaces ! ,
159159 ( i ) => i . name ,
160- ( i ) => i ,
160+ ( i ) => i
161161 ) ;
162162 for ( const [ key , value ] of Object . entries ( descriptions ) ) {
163163 const target = idl . interfaces ! . interface [ key ] || namespaces [ key ] ;
@@ -170,12 +170,12 @@ async function emitDom() {
170170
171171 function mergeDeprecatedMessage (
172172 idl : Browser . WebIdl ,
173- descriptions : Record < string , string > ,
173+ descriptions : Record < string , string >
174174 ) {
175175 const namespaces = arrayToMap (
176176 idl . namespaces ! ,
177177 ( i ) => i . name ,
178- ( i ) => i ,
178+ ( i ) => i
179179 ) ;
180180 for ( const [ key , value ] of Object . entries ( descriptions ) ) {
181181 const target = idl . interfaces ! . interface [ key ] || namespaces [ key ] ;
@@ -301,7 +301,7 @@ async function emitDom() {
301301
302302 function prune (
303303 obj : Browser . WebIdl ,
304- template : Partial < Browser . WebIdl > ,
304+ template : Partial < Browser . WebIdl >
305305 ) : Browser . WebIdl {
306306 return filterByNull ( obj , template ) ;
307307
@@ -312,13 +312,13 @@ async function emitDom() {
312312 if ( ! obj [ k ] ) {
313313 console . warn (
314314 `removedTypes.json has a redundant field ${ k } in ${ JSON . stringify (
315- template ,
316- ) . slice ( 0 , 100 ) } `,
315+ template
316+ ) . slice ( 0 , 100 ) } `
317317 ) ;
318318 } else if ( Array . isArray ( template [ k ] ) ) {
319319 if ( ! Array . isArray ( obj [ k ] ) ) {
320320 throw new Error (
321- `Removal template ${ k } is an array but the original field is not` ,
321+ `Removal template ${ k } is an array but the original field is not`
322322 ) ;
323323 }
324324 // template should include strings
@@ -328,18 +328,18 @@ async function emitDom() {
328328 } ) ;
329329 if ( filtered [ k ] . length !== obj [ k ] . length - template [ k ] . length ) {
330330 const differences = template [ k ] . filter (
331- ( t : any ) => ! obj [ k ] . includes ( t ) ,
331+ ( t : any ) => ! obj [ k ] . includes ( t )
332332 ) ;
333333 console . warn (
334- `removedTypes.json has redundant array items: ${ differences } ` ,
334+ `removedTypes.json has redundant array items: ${ differences } `
335335 ) ;
336336 }
337337 } else if ( template [ k ] !== null ) {
338338 filtered [ k ] = filterByNull ( obj [ k ] , template [ k ] ) ;
339339 } else {
340340 if ( obj [ k ] . exposed === "" ) {
341341 console . warn (
342- `removedTypes.json removes ${ k } that has already been disabled by BCD.` ,
342+ `removedTypes.json removes ${ k } that has already been disabled by BCD.`
343343 ) ;
344344 }
345345 delete filtered [ k ] ;
0 commit comments