32 lines
855 B
Plaintext
32 lines
855 B
Plaintext
export type ComponentModule = () => any;
|
|
export type ModuleReference = [
|
|
componentModule: ComponentModule,
|
|
filePath: string
|
|
];
|
|
export type CollectingMetadata = {
|
|
icon: string[];
|
|
apple: string[];
|
|
twitter: string[];
|
|
openGraph: string[];
|
|
manifest?: string;
|
|
};
|
|
export type CollectedMetadata = {
|
|
icon: ComponentModule[];
|
|
apple: ComponentModule[];
|
|
twitter: ComponentModule[] | null;
|
|
openGraph: ComponentModule[] | null;
|
|
manifest?: string;
|
|
};
|
|
export type MetadataImageModule = {
|
|
url: string;
|
|
type?: string;
|
|
alt?: string;
|
|
} & ({
|
|
sizes?: string;
|
|
} | {
|
|
width?: number;
|
|
height?: number;
|
|
});
|
|
export type PossibleImageFileNameConvention = 'icon' | 'apple' | 'favicon' | 'twitter' | 'openGraph';
|
|
export type PossibleStaticMetadataFileNameConvention = PossibleImageFileNameConvention | 'manifest';
|