File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -229,6 +229,7 @@ export function isActionFailure(e) {
229
229
* ```
230
230
* @param {URL | string } url
231
231
* @returns {{ url: URL, wasNormalized: boolean, denormalize: (url?: string | URL) => URL } }
232
+ * @since 2.18.0
232
233
*/
233
234
export function normalizeUrl ( url ) {
234
235
url = new URL ( url , 'http://internal' ) ;
Original file line number Diff line number Diff line change @@ -2016,7 +2016,8 @@ declare module '@sveltejs/kit' {
2016
2016
* console.log(url.pathname); // /blog/post
2017
2017
* console.log(denormalize('/blog/post/a')); // /blog/post/a/__data.json
2018
2018
* ```
2019
- * */
2019
+ * @since 2.18.0
2020
+ */
2020
2021
export function normalizeUrl ( url : URL | string ) : {
2021
2022
url : URL ;
2022
2023
wasNormalized : boolean ;
You can’t perform that action at this time.
0 commit comments