Skip to content

Conversation

Hurshikesh
Copy link

Related Tickets & Documents
Fixes: #1768

Description
This PR introduces comprehensive TypeScript typings across the frontend components and backend API functions to enhance type safety and developer experience. No UI or functional behavior has been changed.

Changes
API Layer (lib/api.ts): Added strict parameter and return types using shared interfaces.

Type Definitions: Utilized interfaces from types/post.ts, types/tag.ts, and types/api.ts.

Component Typings Added:

PostPreview

PostHeader

PostTitle

Header

Layout

TagsPostPreview

PostHeaderAuthors

SubscribeNewsletter

TopBlogs

Tag

NotFoundPage

Container

AdSlot

Date

Avatar

Alert

Marquee

TwitterTestimonials

Prop types are now explicitly defined for all components, improving code clarity and editor support.

Type of Change
New feature (adds typing and developer tooling improvements)

Testing
Verified local development server (npm run dev) starts and runs without errors.

TypeScript compiler (tsc) passes with zero errors.

Demo
N/A (no UI or runtime changes)

Environment and Dependencies
New Dependencies: None

Configuration Changes: None

Checklist
Code adheres to project style guidelines

Self-reviewed code changes

Documentation updated where necessary

@Hurshikesh Hurshikesh force-pushed the feat/types-for-components branch from 8344020 to bfba557 Compare June 18, 2025 15:35
Signed-off-by: hurshikesh sahu <sonuhurshikesh@gmail.com>
@Hurshikesh Hurshikesh force-pushed the feat/types-for-components branch from 12185e7 to 394dce8 Compare June 18, 2025 17:16
@Hurshikesh
Copy link
Author

Hi! This PR is ready for review. Please let me know if any changes are needed.

@pratik-mahalle
Copy link

Hey @Hurshikesh, Thank you for raising the pull request. Our team will review the changes soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants