chore: name back to AdditionalRobotsProps

This commit is contained in:
oe.kazuma 2022-05-16 15:09:05 +09:00
parent 7651f74fc6
commit e9f7238f93
3 changed files with 6 additions and 6 deletions

View File

@ -800,7 +800,7 @@ interface MetaTagsProps {
titleTemplate?: string;
noindex?: boolean;
nofollow?: boolean;
robotsProps?: AdditionalRobots;
robotsProps?: AdditionalRobotsProps;
description?: string;
canonical?: string;
mobileAlternate?: MobileAlternate;
@ -822,10 +822,10 @@ interface JsonLdProps {
}
```
### AdditionalRobots
### AdditionalRobotsProps
```ts
interface AdditionalRobots {
interface AdditionalRobotsProps {
nosnippet?: boolean;
maxSnippet?: number;
maxImagePreview?: 'none' | 'standard' | 'large';

View File

@ -3,7 +3,7 @@ export { default as JsonLd } from './JsonLd.svelte';
export type {
MetaTagsProps,
JsonLdProps,
AdditionalRobots,
AdditionalRobotsProps,
MobileAlternate,
LanguageAlternate,
Twitter,

4
src/lib/types.d.ts vendored
View File

@ -10,7 +10,7 @@ export interface LanguageAlternate {
href: string;
}
export interface AdditionalRobots {
export interface AdditionalRobotsProps {
nosnippet?: boolean;
maxSnippet?: number;
maxImagePreview?: 'none' | 'standard' | 'large';
@ -141,7 +141,7 @@ export interface MetaTagsProps {
titleTemplate?: string;
noindex?: boolean;
nofollow?: boolean;
robotsProps?: AdditionalRobots;
robotsProps?: AdditionalRobotsProps;
description?: string;
canonical?: string;
mobileAlternate?: MobileAlternate;