chore: add typings and remove placeholders#1175
Conversation
|
Visit the preview URL for this PR (updated for commit 6d1ed20): https://docusaurus-openapi-36b86--pr1175-5ben620x.web.app (expires Sun, 27 Jul 2025 18:20:04 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: bf293780ee827f578864d92193b8c2866acd459f |
|
The latest commit removes custom placeholder typings and relies on official @types packages instead. Imports throughout the theme now use the typed Postman Collection module: import { Collection } from "postman-collection"; The code snippets component was updated similarly: Form‑data handling in makeRequest now fetches members safely: Query parameter building converts values to strings to satisfy typings: Cookie construction also specifies empty domain and path fields: Placeholder declaration files (postman-collection.d.ts, react-modal.d.ts, and theme-translations.d.ts) were deleted, and @types/postman-collection and @types/react-modal were added to package.json: These changes ensure that code relying on Postman and React Modal APIs benefits from real type definitions, improving editor tooling, compilation safety, and future maintainability. |
Summary
@typespackages for Postman collection and React modalTesting
yarn lintyarn testyarn build-packageshttps://chatgpt.com/codex/tasks/task_e_685ed9dd8f8c832398f0bd2341655ec2