23 typescript rules available
Browse optimized Kiro rules specifically designed for TypeScript development. These rules help Kiro's AI understand TypeScript best practices and patterns.
TypeScript configuration significantly impacts AI code generation quality. Rules that specify strict type checking, preferred type inference patterns, and interface vs type alias preferences help generate more maintainable and type-safe code. Proper TypeScript rules also guide the AI on generic usage and utility types.
When configuring Kiro for TypeScript development, consider these recommendations:
TypeScript rules often focus on strict mode compliance, proper null handling, and avoiding 'any' escape hatches. Popular configurations include Zod or Yup for runtime validation, and patterns for API type generation from OpenAPI or GraphQL schemas.
Most production-quality rules either ban 'any' or restrict it to specific escape hatch patterns. Using 'unknown' with proper type guards is generally preferred for handling truly dynamic data.
Good TypeScript rules balance explicit typing with inference. They typically recommend explicit return types for public APIs while allowing inference for internal implementation details.
Some rules include JSDoc patterns for projects that generate documentation or need to support JavaScript consumers. Look for 'jsdoc' or 'documentation' tags if this is important for your project.
Implement Cognito authentication
Implement EventBridge event patterns
Generate SQS queue processing code
Generate CloudFormation infrastructure
Use SSM Parameter Store
Generate AWS SAM serverless apps
Manage secrets with AWS Secrets Manager
AWS Kiro rules for full-stack application development with Next.js and AWS services.
Generate ECS Fargate configurations
Kiro rules for AWS-native development with CDK, Lambda, and DynamoDB.
Generate AWS CDK constructs
Set up CloudWatch monitoring
Generate Step Functions workflows
Generate AWS Lambda function code
Kiro rules for React development with TypeScript and modern patterns.
Generate messaging configurations
Generate Amplify configurations
Kiro rules for TypeScript development with strict type checking.
Kiro rules for Next.js development with App Router and AWS deployment.
Generate S3 bucket operations
Configure API Gateway resources
Generate AppSync GraphQL APIs
Generate DynamoDB access patterns
Create your own Kiro rules for TypeScript and share with the community.