@ngaox/seo
Version:
Easily generate and manage SEO-friendly meta tags, page title,...
32 lines (31 loc) • 828 B
TypeScript
import { ActivatedRouteSnapshot } from '@angular/router';
import { MetaDefinition } from '@angular/platform-browser';
export declare const SeoKey = "NgaoxSeo";
export declare const SeoDefaultsToken: unique symbol;
export interface ISeoLoader {
resolve(route: ActivatedRouteSnapshot): IPageSeoData;
}
export interface IPageSeoData {
title?: string;
keywords?: string;
description?: string;
url?: string;
type?: string;
image?: string | ISeoImage;
twitter?: ISeoTwitter;
fbAppId?: string;
siteName?: string;
extra?: MetaDefinition[];
}
export interface ISeoImage {
url: string;
alt?: string;
width?: number;
height?: number;
mimeType?: string;
}
export interface ISeoTwitter {
site?: string;
creator?: string;
card?: 'summary_large_image' | 'summary';
}