techveda-react-seo
Version:
Complete React SEO automation library with meta tags, robots.txt and sitemap generation
41 lines (37 loc) • 826 B
text/typescript
export interface GenerateRobotsOptions {
domain: string;
allowAll?: boolean;
sitemapPath?: string;
disallowPaths?: string[];
outputPath?: string;
}
export interface GenerateSitemapOptions {
domain: string;
routes?: string[];
outputPath?: string;
}
export interface SeoProps {
domainUrl: string;
name?: string;
title?: string;
description?: string;
image?: string;
robots?: string;
type?: string;
socialMediaLinks?: string[];
twitterHandle?: string;
robotsTxt?: GenerateRobotsOptions;
sitemap?: GenerateSitemapOptions;
}
export interface RobotsGeneratorState {
loading: boolean;
error: Error | null;
success: boolean;
filePath: string | null;
}
export interface SitemapGeneratorState {
loading: boolean;
error: Error | null;
success: boolean;
filePath: string | null;
}