File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -5896,10 +5896,10 @@ interface GlobalEventHandlers {
5896
5896
*/
5897
5897
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
5898
5898
ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
5899
- ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
5900
- ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
5901
- ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
5902
- ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
5899
+ ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined ;
5900
+ ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined ;
5901
+ ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined ;
5902
+ ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined ;
5903
5903
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
5904
5904
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
5905
5905
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
Original file line number Diff line number Diff line change @@ -791,7 +791,7 @@ export function emitWebIdl(
791
791
} else {
792
792
pType = convertDomTypeToTsType ( p ) ;
793
793
}
794
- if ( p . optional && prefix ) {
794
+ if ( p . optional ) {
795
795
pType += " | undefined" ;
796
796
}
797
797
const optionalModifier = ! p . optional || prefix ? "" : "?" ;
You can’t perform that action at this time.
0 commit comments