moved type definitions to a separate directory and fixed some documentations under utils/

This commit is contained in:
2024-11-17 18:06:59 +09:00
parent 1ab17242f7
commit 1c4947e4e3
11 changed files with 3 additions and 4 deletions

18
utils/types/pageTop.ts Normal file
View File

@@ -0,0 +1,18 @@
/**
* Type for PageTop component
* @module utils/pageTop
*/
/**
* Interface that defines property for PageTop component
* @property {string} text Text to show in top
* @property {string} imagePath Path to image used in background
* @example
* <PageTop text="News" image-path="/images/news-top.jpg" />
*/
interface PageTopProperty {
text: string;
imagePath: string;
}
export type { PageTopProperty };