astro-accelerator-utils 0.0.37 → 0.0.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,27 +21,27 @@ export function getMenu(currentUrl: URL, _: TranslationProvider, translations: a
21
21
  * @param {TranslationProvider} _
22
22
  * @param {any} translations
23
23
  * @param {Site} site
24
- * @returns {NavPage[]}
24
+ * @returns {Promise<NavPage[]>}
25
25
  */
26
- export function getCategories(links: TaxonomyLinks, _: TranslationProvider, translations: any, site: any): NavPage[];
26
+ export function getCategories(links: TaxonomyLinks, _: TranslationProvider, translations: any, site: any): Promise<NavPage[]>;
27
27
  /**
28
28
  *
29
29
  * @param {TaxonomyLinks} links
30
30
  * @param {TranslationProvider} _
31
31
  * @param {any} translations
32
32
  * @param {Site} site
33
- * @returns {NavPage[]}
33
+ * @returns {Promise<NavPage[]>}
34
34
  */
35
- export function getTags(links: TaxonomyLinks, _: TranslationProvider, translations: any, site: any): NavPage[];
35
+ export function getTags(links: TaxonomyLinks, _: TranslationProvider, translations: any, site: any): Promise<NavPage[]>;
36
36
  /**
37
37
  *
38
38
  * @param {TaxonomyLinks} links
39
39
  * @param {TranslationProvider} _
40
40
  * @param {any} translations
41
41
  * @param {Site} site
42
- * @returns {NavPage[]}
42
+ * @returns {Promise<NavPage[]>}
43
43
  */
44
- export function getTopTags(links: TaxonomyLinks, _: TranslationProvider, translations: any, site: any): NavPage[];
44
+ export function getTopTags(links: TaxonomyLinks, _: TranslationProvider, translations: any, site: any): Promise<NavPage[]>;
45
45
  export type NavPage = import("../types/NavPage").NavPage;
46
46
  export type Site = import("../types/Astro").Site;
47
47
  export type Entry = import("../types/Translations").Entry;
@@ -1,3 +1,6 @@
1
+ import * as Taxonomy from './taxonomy.mjs';
2
+ import * as Navigation from './navigation.mjs';
3
+
1
4
  /**
2
5
  * @typedef { import("../types/NavPage").NavPage } NavPage
3
6
  * @typedef { import("../types/Astro").Site } Site
@@ -60,7 +63,7 @@ export async function getMenu (currentUrl, _, translations, site, menu) {
60
63
  * @param {TranslationProvider} _
61
64
  * @param {any} translations
62
65
  * @param {Site} site
63
- * @returns {NavPage[]}
66
+ * @returns {Promise<NavPage[]>}
64
67
  */
65
68
  export async function getCategories (links, _, translations, site) {
66
69
 
@@ -100,7 +103,7 @@ export async function getCategories (links, _, translations, site) {
100
103
  * @param {TranslationProvider} _
101
104
  * @param {any} translations
102
105
  * @param {Site} site
103
- * @returns {NavPage[]}
106
+ * @returns {Promise<NavPage[]>}
104
107
  */
105
108
  export async function getTags (links, _, translations, site) {
106
109
 
@@ -140,7 +143,7 @@ export async function getTags (links, _, translations, site) {
140
143
  * @param {TranslationProvider} _
141
144
  * @param {any} translations
142
145
  * @param {Site} site
143
- * @returns {NavPage[]}
146
+ * @returns {Promise<NavPage[]>}
144
147
  */
145
148
  export async function getTopTags (links, _, translations, site) {
146
149
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro-accelerator-utils",
3
- "version": "0.0.37",
3
+ "version": "0.0.38",
4
4
  "description": "Astro utilities for Astro Accelerator.",
5
5
  "main": "index.mjs",
6
6
  "files": [