mwg API
    Preparing search index...

    Function collectHookReferences

    • Every hook a compiled game references, deduplicated by type:name and ordered so the output is stable.

      Parameters

      Returns HookReference[]

      import { collectHookReferences, type MwlCompiledGame } from '@datamoc/mw_games/mwl';

      declare const game: MwlCompiledGame;
      console.log(collectHookReferences(game).map((reference) => `${reference.type}:${reference.name}`));