definitionOf beta
Function of @v12-engine/editor/vite
ts
export declare function definitionOf(project: string | ProjectLayout, game: string, id: string, key?: string): Promise<{
file: string;
line: number;
} | undefined>;Where something of the code is defined, by its id: the first id: '<id>' in the game's folder, then in the other games and the engine, then in the rest of the project's code (the scenes of its app). Definitions are plain objects that do not know where they were written, so the code is searched. key is another property to look for: check: for the game's checks