Skip to main content

Lifecycle (common)

Types & Interfaces

OnDestroy

import { OnDestroy } from '@hexajs-dev/common';
interface OnDestroy {
onDestroy(): void | Promise<void>;
}

OnInit

import { OnInit } from '@hexajs-dev/common';
interface OnInit {
onInit(): void | Promise<void>;
}