-
Hi, i want to export all classes among all files (this is for internal use)? tried a lot of combinations of this:
example of files, which is ignored (actually all files are ignored): // src/adapters/MDFileRepository.ts
import type { CachedMetadata, TFile } from "obsidian";
import type { IFileRepository } from "@/application";
type IgetMarkdownFiles = () => TFile[];
type IgetFileMeta = (file: TFile) => CachedMetadata | null;
/**
* Performs read/write operations on files, containing question's content
*/
export class MDFileRepository implements IFileRepository {
constructor(
private getMarkdownFiles: IgetMarkdownFiles,
private getFileMeta: IgetFileMeta,
) {}
getFilesMeta() {
const files = this.getMarkdownFiles();
const filesMeta = files.map((file) => this.getFileMeta(file));
return filesMeta as CachedMetadata[];
}
} |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Its started to work finally. IDK why - probably some cache issue |
Beta Was this translation helpful? Give feedback.
-
You need to point TypeDoc at the whole src folder and use expand so every file is treated as an entry point. For example, Then run: If you want to debug which files are included, add --verbose. That should pick up MDFileRepository and the rest of your classes. |
Beta Was this translation helpful? Give feedback.
Its started to work finally. IDK why - probably some cache issue