Skip to content
This repository was archived by the owner on Jan 2, 2022. It is now read-only.

Commit f651c37

Browse files
committed
refactor: add function return type
Closes #40 Signed-off-by: Jonah Snider <[email protected]>
1 parent 96f4261 commit f651c37

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/index.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,18 @@ interface NetlifyOpts {
1818
inputs: NetlifyInputs;
1919
}
2020

21-
function generateAbsolutePaths(options: Pick<NetlifyOpts, 'inputs' | 'netlifyConfig'>) {
21+
function generateAbsolutePaths(
22+
options: Pick<NetlifyOpts, 'inputs' | 'netlifyConfig'>
23+
): {
24+
absolute: {
25+
/** The absolute path to the build folder for Next.js. */
26+
buildDir: string;
27+
/** The absolute path to the build manifest Next.js uses. */
28+
manifest: string;
29+
};
30+
/** The name of the build directory. */
31+
buildDirName: string;
32+
} {
2233
/** The name of the build folder. `.next`, unless specially configured. */
2334
const buildDirName = options.inputs.custom_build_dir_name ?? '.next';
2435
/** The directory the build folder is in. Defaults to current directory, although some larger repositories might keep this in a `frontend` folder. */

0 commit comments

Comments
 (0)