Skip to content

Commit 518fe7e

Browse files
committed
Remove @async tag
1 parent 14062fb commit 518fe7e

File tree

5 files changed

+1
-7
lines changed

5 files changed

+1
-7
lines changed

lib/build-pages/page-builders/page-writer.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import { writeFile, mkdir } from 'fs/promises'
2121
/**
2222
* pageLayout functions Can be used to type a name.layout.js file
2323
*
24-
* @async
2524
* @template {Record<string, any>} T - The type of variables passed to the page function
2625
* @template [U=any] U - The return type of the page function (defaults to any)
2726
* @callback PageFunction

lib/build-pages/page-data.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import pretty from 'pretty'
1616
/**
1717
* Resolves a layout from an ESM module.
1818
*
19-
* @async
2019
* @function
2120
* @template T - The type of variables for the layout
2221
* @template [U=any] U - The return type of the page function (defaults to any)
@@ -51,7 +50,6 @@ export async function resolveLayout (layoutPath) {
5150
/**
5251
* postVars functions Can be used to generate page vars but access all page data
5352
*
54-
* @async
5553
* @template {Record<string, any>} T - The type of variables for the page
5654
* @template [U=any] U - The return type of the page function (defaults to any)
5755
* @template [V=string] V - The return type of the layout function (defaults to string)

lib/builder.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,12 @@ import { ensureDest } from './helpers/ensure-dest.js'
7272
* Builds a domstack site from src to dest with a few options.
7373
*
7474
*
75-
* @async
7675
* @function
7776
* @export
7877
* @param {string} src - The source directory from which the site should be built.
7978
* @param {string} dest - The destination directory where the built site should be placed.
8079
* @param {DomStackOpts} opts - Options for the build process.
81-
* @returns Results
80+
* @returns {Promise<Results>}
8281
*
8382
* @example
8483
*

lib/helpers/ensure-dest.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ const MAX_CONCURRENCY = Math.min(cpus().length, 24)
1212
/**
1313
* Create folders for each page.
1414
*
15-
* @async
1615
* @function
1716
* @param {string} dest - The destination directory where folders will be created.
1817
* @param {SiteData} siteData - An object containing an array of pages, each having a path where a folder should be created.

lib/identify-pages.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ const shaper = ({
162162
/**
163163
* Identifies the pages, layouts, templates, and other relevant data from a given source directory.
164164
*
165-
* @async
166165
* @function
167166
* @export
168167
* @param {string} src - The source directory to identify pages from.

0 commit comments

Comments
 (0)