tupik/top • LM Studio Hub
top
Project: My Awesome TypeScript Library
General Instructions:
- When generating new TypeScript code, please follow the existing coding style.
- Ensure all new functions and classes have JSDoc comments.
- Prefer functional programming paradigms where appropriate.
- All code should be compatible with TypeScript 5.0 and Node.js 20+.
Coding Style:
Use 2 spaces for indentation.Interface names should be prefixed with I (e.g., IUserService).Private class members should be prefixed with an underscore (_).Always use strict equality (=== and !==).Specific Component: src/api/client.ts
- This file handles all outbound API requests.
- When adding new API call functions, ensure they include robust error handling and logging.
- Use the existing
fetchWithRetry utility for all GET requests.
- Avoid introducing new external dependencies unless absolutely necessary.
- If a new dependency is required, please state the reason.