Skip to content
Snippets Groups Projects
Select Git revision
  • 2aaa94f521cf4e5bc64097249ee62579696128a1
  • main default protected
  • 5.0.8
  • 5.0.7
  • 5.0.6
  • 5.0.5
  • 5.0.4
  • 5.0.3
  • 5.0.2
  • 5.0.1
  • 5.0.0
  • 4.0.4
  • 4.0.3
  • 4.0.2
  • 3.0.0
  • 2.0.0
  • 1.0.2
  • 1.0.1
  • 1.0.0
19 results

init.ts

  • init.ts 439 B
    import { init as initHanziData } from './hanzi-data/init'
    import { initNotice } from './notice'
    import { init as initTts } from './tts/init'
    import { init as initWrite } from './write/init'
    
    export async function init (within: HTMLElement | null): Promise<void> {
      if (within === null) {
        throw new Error('container not found')
      }
      await initHanziData(within)
      initTts(within)
      await initWrite(within)
      await initNotice(within)
    }