File tree Expand file tree Collapse file tree 3 files changed +12
-7
lines changed
Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -395,8 +395,7 @@ export declare function forceUpdate(ref: any): void;
395395 */
396396export declare function getRenderingRef ( ) : any ;
397397
398- // TODO: remove `autocorrect` omission when this is properly typed in [in typescript](https://github.com/microsoft/typescript/issues/62083)
399- export interface HTMLStencilElement extends Omit < HTMLElement , 'autocorrect' > {
398+ export interface HTMLStencilElement extends HTMLElement {
400399 componentOnReady ( ) : Promise < this> ;
401400}
402401
Original file line number Diff line number Diff line change 2121 "@stencil/core/mock-doc" : [
2222 " ../../mock-doc"
2323 ]
24- }
24+ },
25+ "skipLibCheck" : true
2526 },
2627 "include" : [" src" ]
2728}
Original file line number Diff line number Diff line change 33// `stencil-sibling` test suite
44import 'test-sibling' ;
55import { setMode } from '@stencil/core' ;
6- // @ts -ignore
6+
7+ // @ts -ignore - this should produce a warning but not cause the build to fail
78import { setAssetPath } from '@stencil/core/internal/client/index' ;
89
10+ // this doesn't do anything - just stops rollup removing the import
11+ setAssetPath ( '/base/path' ) ;
12+
13+ export let thing : HTMLElement = globalThis . document ? document . createElement ( 'div' ) : null ;
14+
915const globalScript = ( ) => {
1016 setMode ( ( elm ) => {
17+ // this should be valid as HTMLElement and HTMLStencilElement should be compatible
18+ thing = elm as HTMLAttributeBasicElement ;
1119 return ( elm as any ) . colormode || elm . getAttribute ( 'colormode' ) ;
1220 } ) ;
1321} ;
1422
15- // this doesn't do anything - just stops rollup removing the import
16- setAssetPath ( '/base/path' ) ;
17-
1823export default globalScript ;
You can’t perform that action at this time.
0 commit comments