This repository was archived by the owner on Jan 9, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ class EventHandler {
2929
3030export function processEvent ( part : TemplatePart , value : unknown ) : boolean {
3131 if ( part instanceof AttributeTemplatePart && part . attributeName . startsWith ( 'on' ) ) {
32- EventHandler . for ( part ) . set ( ( value as unknown ) as EventListener )
32+ EventHandler . for ( part ) . set ( value as unknown as EventListener )
3333 part . element . removeAttributeNS ( part . attributeNamespace , part . attributeName )
3434 return true
3535 }
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import {NodeTemplatePart} from '@github/template-parts'
33import type { TemplatePart } from '@github/template-parts'
44
55function isIterable ( value : unknown ) : value is Iterable < unknown > {
6- return typeof value === 'object' && Symbol . iterator in ( ( value as unknown ) as Record < symbol , unknown > )
6+ return typeof value === 'object' && Symbol . iterator in ( value as unknown as Record < symbol , unknown > )
77}
88
99export function processIterable ( part : TemplatePart , value : unknown ) : boolean {
Original file line number Diff line number Diff line change @@ -36,6 +36,6 @@ export class TemplateResult {
3636 }
3737 return
3838 }
39- renderedTemplateInstances . get ( element ) ! . update ( ( this . values as unknown ) as Record < string , unknown > )
39+ renderedTemplateInstances . get ( element ) ! . update ( this . values as unknown as Record < string , unknown > )
4040 }
4141}
You can’t perform that action at this time.
0 commit comments