-
Notifications
You must be signed in to change notification settings - Fork 2
TypeScript & Types
Power SEO Bot edited this page Feb 27, 2026
·
1 revision
Power-SEO is 100% TypeScript with comprehensive type definitions across all 17 packages.
Every package includes:
- Complete
.d.tstype definitions - Zero need for
@types/packages - Type inference for all exports
- Strict null checks enabled
import { analyzeContent, AnalysisResult } from '@power-seo/content-analysis';
const result: AnalysisResult = analyzeContent({
title: 'My Article',
content: '<h1>My Article</h1><p>Content...</p>',
focusKeyphrase: 'my keyword',
});
// result.score is typed as number
// result.results is typed as AnalysisResult[]
// result.recommendations is typed as string[]JSON-LD schema builders are fully typed:
import { article, Article } from '@power-seo/schema';
const schema: Article = article({
headline: 'My Article',
datePublished: '2026-01-15',
author: { name: 'Jane Doe' },
});Next.js and Remix have specific types:
// Next.js - metadata object
import { createMetadata, Metadata } from '@power-seo/meta';
export const metadata: Metadata = createMetadata({
title: 'My Page',
description: 'Page description',
});
// Remix - MetaDescriptor array
import { createMetaDescriptors, MetaDescriptor } from '@power-seo/meta';
export const meta = (): MetaDescriptor[] =>
createMetaDescriptors({
title: 'My Page',
description: 'Page description',
});- ✅ No type guessing
- ✅ IDE autocomplete
- ✅ Compiler catches errors early
- ✅ Self-documenting code
- ✅ Zero runtime overhead
For more information, check the API Reference pages.