@sveltinio/seo
Version:
A collection of type-safe SEO related Svelte components to easily add structured SEO data to pages in Svelte & SvelteKit.
7 lines (6 loc) • 432 B
TypeScript
import type { Thing, WithContext } from 'schema-dts';
import type { SEOContact, SEOPerson } from './types.js';
export type Schema = Thing | WithContext<Thing>;
export declare function serializeJSONLdSchema(thing: Schema, dataTestId: string): string;
export declare const isSEOPerson: (contact: SEOContact) => contact is SEOPerson;
export declare function toISODateString(date: string | Date | undefined | null): string | undefined;