- Introduced `SearchResult` interface to standardize search result handling and improve code readability. - Added TypeScript type annotations for command arguments and options in CLI methods to enforce stricter type safety. - Updated `.version()` for CLI to align with best practices by removing redundant description parameter. - Enhanced search logic with default parameter handling for limits and improved output formatting for results. - Adjusted `tsconfig.json` to disable `noImplicitAny` while retaining strict typing practices. - Streamlined CLI processes by parsing command-line arguments explicitly with `program.parse(process.argv)`. Purpose: Improve developer productivity with better type safety, clearer interfaces, and refined CLI functionality.
19 lines
437 B
JSON
19 lines
437 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2020",
|
|
"module": "ESNext",
|
|
"moduleResolution": "node",
|
|
"esModuleInterop": true,
|
|
"strict": true,
|
|
"noImplicitAny": false,
|
|
"outDir": "dist",
|
|
"declaration": true,
|
|
"sourceMap": true,
|
|
"skipLibCheck": true,
|
|
"paths": {
|
|
"@soulcraft/brainy": ["../dist/unified.d.ts"]
|
|
}
|
|
},
|
|
"include": ["src/**/*", "types.d.ts"],
|
|
"exclude": ["node_modules", "dist"]
|
|
}
|