AppTerminateHandler type

アプリ終了フック用ハンドラー

type AppTerminateHandler = (
  context: AppTerminateContext
) => void | Promise<void>