mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2025-01-06 14:26:35 +03:00
Address some typescript warnings.
This commit is contained in:
parent
c58c6c3081
commit
39bf0ca62a
@ -1,4 +1,4 @@
|
||||
generateRawContent = require("./generate-raw-content.js");
|
||||
const generateRawContent = require("./generate-raw-content.js");
|
||||
const exposingList =
|
||||
"(PathKey, allPages, allImages, internals, images, isValidRoute, pages, builtAt)";
|
||||
|
||||
@ -41,6 +41,19 @@ isValidRoute route =
|
||||
`;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {{
|
||||
allRoutes: string;
|
||||
routeRecord: string;
|
||||
imageAssetsRecord: string;
|
||||
allImages: string[];
|
||||
}} staticRoutes
|
||||
* @param {{
|
||||
path: any;
|
||||
metadata: string;
|
||||
body: string;
|
||||
}[]} markdownContent
|
||||
*/
|
||||
function elmPagesUiFile(staticRoutes, markdownContent) {
|
||||
return `port module Pages exposing ${exposingList}
|
||||
|
||||
@ -109,6 +122,19 @@ ${generateRawContent(markdownContent, false)}
|
||||
`;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {{
|
||||
allRoutes: string;
|
||||
routeRecord: string;
|
||||
imageAssetsRecord: string;
|
||||
allImages: string[];
|
||||
}} staticRoutes
|
||||
* @param {{
|
||||
path: any;
|
||||
metadata: string;
|
||||
body: string;
|
||||
}[]} markdownContent
|
||||
*/
|
||||
function elmPagesCliFile(staticRoutes, markdownContent) {
|
||||
return `port module Pages exposing ${exposingList}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user