moved type definitions to a separate directory and fixed some documentations under utils/
This commit is contained in:
18
utils/types/pageTop.ts
Normal file
18
utils/types/pageTop.ts
Normal 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 };
|
||||
Reference in New Issue
Block a user