@sprucelabs/spruce-cli
Version:
Command line interface for building Spruce skills.
26 lines (25 loc) • 912 B
TypeScript
import * as ts from 'typescript';
declare const introspectionUtil: {
introspect(tsFiles: string[]): Introspection[];
getExports(sourceFile: ts.SourceFile): ts.Node[];
getClassDeclarationFromImportedFile(exportDeclaration: ts.Node, dirName: string, program: ts.Program): ts.ClassDeclaration | undefined;
hasClassDefinition(sourceFile: ts.SourceFile): boolean;
};
export default introspectionUtil;
export interface IntrospectionClass {
className: string;
classPath: string;
parentClassName: string | undefined;
parentClassPath: string | undefined;
optionsInterfaceName: string | undefined;
isAbstract: boolean;
staticProperties: StaticProperties;
}
type StaticProperties = Record<string, any>;
interface IntrospectionInterface {
interfaceName: string;
}
export interface Introspection {
classes: IntrospectionClass[];
interfaces: IntrospectionInterface[];
}