@everdome_io/next-js-helper
Version:
``` npm install @uig/uig-nextjs-helper ``` or ``` yarn add -D @uig/uig-nextjs-helper ```
14 lines (13 loc) • 383 B
TypeScript
export declare type ImageDataType = {
src: string;
alt: string;
};
export declare type StrapiImageType = {
data?: {
attributes: {
url?: string | null;
alternativeText?: string | null;
};
};
};
export declare const imageProps: (image: StrapiImageType | StrapiImageType['data'] | undefined | null) => ImageDataType;