@@ -17,14 +17,14 @@ export default class Client {
1717 * Creates a client.
1818 *
1919 * @param {Object } [options={}] - The options for the client.
20- * @param {string } [options.baseUrl='/api'] - The base path of the API.
21- * @param {string } [options.baseUrl=window.location.origin] - The base URL of the API.
22- * @param {function } [options.fetchClient=fetch.bind(window)] - The fetch client to use.
23- * @param {Object } [options.fetchOptions={}] - The fetch client options .
24- * @param {string } [options.locale=''] - The locale for every request.
25- * @param {function } [options.onError=() => {}] - The function to call on error.
26- * @param {function } [options.onResponse=(r) => r] - The function to call on response.
27- * @param {boolean } [options.removeEmbedded=false] - Whether to remove the _embedded layer from the response if present.
20+ * @param {String } [options.baseUrl='/api'] - The base path of the API.
21+ * @param {String } [options.baseUrl=window.location.origin] - The base URL of the API.
22+ * @param {Function } [options.fetchClient=fetch.bind(window)] - The fetch client to use.
23+ * @param {Object } [options.fetchOptions={}] - The options for the fetch client.
24+ * @param {String } [options.locale=''] - The locale for every request.
25+ * @param {Function } [options.onError=() => {}] - The function to call on error.
26+ * @param {Function } [options.onResponse=(r) => r] - The function to call on response.
27+ * @param {Boolean } [options.removeEmbedded=false] - Whether to remove the _embedded layer from the response if present.
2828 */
2929 constructor ( {
3030 basePath = '/api' ,
@@ -49,11 +49,11 @@ export default class Client {
4949 /**
5050 * Builds a URL with the given path and optional query parameters.
5151 *
52- * @param {string } path - The path for the URL.
52+ * @param {String } path - The path for the URL.
5353 * @param {Object } [options={}] - The options for building the URL.
5454 * @param {Object } [options.params={}] - The query parameters for the URL.
55- * @param {boolean } [options.withBasePath=true] - Whether to apply the base path.
56- * @param {boolean } [options.withLocale=true] - Whether to prepend locale to path.
55+ * @param {Boolean } [options.withBasePath=true] - Whether to apply the base path.
56+ * @param {Boolean } [options.withLocale=true] - Whether to prepend locale to path.
5757 * @returns {URL } The built URL.
5858 */
5959 buildUrl (
@@ -115,7 +115,7 @@ export default class Client {
115115 /**
116116 * Retrieves page data from the given path.
117117 *
118- * @param {string } path - The path of the page to retrieve.
118+ * @param {String } path - The path of the page to retrieve.
119119 * @returns {Promise<Object> } A Promise that resolves to the page data.
120120 */
121121 getPageByPath ( path ) {
@@ -130,7 +130,7 @@ export default class Client {
130130 /**
131131 * Retrieves navigation data with the given key and optional query parameters.
132132 *
133- * @param {string } key - The key of the navigation to retrieve.
133+ * @param {String } key - The key of the navigation to retrieve.
134134 * @param {Object } [params] - The query parameters for the request.
135135 * @returns {Promise<Object> } A Promise that resolves to the navigation data.
136136 */
@@ -145,7 +145,7 @@ export default class Client {
145145 /**
146146 * Retrieves snippet data with the given area name and optional query parameters.
147147 *
148- * @param {string } area - The name of the snippet area to retrieve.
148+ * @param {String } area - The name of the snippet area to retrieve.
149149 * @param {Object } [params] - The query parameters for the request.
150150 * @returns {Promise<Object> } A Promise that resolves to the snippet area data.
151151 */
@@ -160,7 +160,7 @@ export default class Client {
160160 /**
161161 * Performs a search with the given query.
162162 *
163- * @param {string } query - The search query.
163+ * @param {String } query - The search query.
164164 * @returns {Promise<Object> } A Promise that resolves to the search results.
165165 */
166166 search ( query ) {
0 commit comments