Skip to content

Commit

Permalink
fix preload inline docs (#10037)
Browse files Browse the repository at this point in the history
* fix preload inline docs

* Update .changeset/purple-books-guess.md

Co-authored-by: Ben McCann <[email protected]>

---------

Co-authored-by: Rich Harris <[email protected]>
Co-authored-by: Ben McCann <[email protected]>
  • Loading branch information
3 people authored May 25, 2023
1 parent 9d8376f commit 7499d8f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/purple-books-guess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

docs: correct `ResolveOptions['preload']` inline documentation
2 changes: 1 addition & 1 deletion packages/kit/src/exports/public.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ export interface ResolveOptions {
filterSerializedResponseHeaders?(name: string, value: string): boolean;
/**
* Determines what should be added to the `<head>` tag to preload it.
* By default, `js`, `css` and `font` files will be preloaded.
* By default, `js` and `css` files will be preloaded.
* @param input the type of the file and its path
*/
preload?(input: { type: 'font' | 'css' | 'js' | 'asset'; path: string }): boolean;
Expand Down

0 comments on commit 7499d8f

Please sign in to comment.