import { delay } from './delay.js' ; import { Laya } from 'Laya.js' ; class Main { constructor ( ) { Laya . init ( 800 , 600 ) ; Laya . stage . screenMode = 'none' ; this . test1 ( ) ; } async test1 ( ) { await delay ( 10 ) ; ( window as any ) . testEnd = true ; } } new Main ( ) ;