dcl-npc-toolkit-ai-version
Version:
A collection of tools for creating Non-Player-Characters (NPCs). These are capable of having conversations with the player, and play different animations. AI usage is added atop of it
14 lines (13 loc) • 642 B
TypeScript
import * as ts from "typescript";
import { Class, Interface, Context, Enum } from "./types";
export declare function parseFiles(fileNames: string[], decoratorName?: string, context?: Context): {
classes: Class[];
interfaces: Interface[];
enums: Enum[];
};
/**
* TypeScript 4.8+ has introduced a change on how to access decorators.
* - https://github.com/microsoft/TypeScript/pull/49089
* - https://devblogs.microsoft.com/typescript/announcing-typescript-4-8/#decorators-are-placed-on-modifiers-on-typescripts-syntax-trees
*/
export declare function getDecorators(node: ts.Node | null | undefined): undefined | ts.Decorator[];