Skip to content

Commit 6a77df0

Browse files
authored
type fixes for adapter-node and adapter-static (#1578)
1 parent 2172469 commit 6a77df0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/adapter-node/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
declare function plugin(options: { out?: string }): import('@sveltejs/kit').Adapter;
1+
declare function plugin(options?: { out?: string }): import('@sveltejs/kit').Adapter;
22

33
export = plugin;

packages/adapter-static/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
declare function plugin(options: {
1+
declare function plugin(options?: {
22
pages?: string;
33
assets?: string;
44
fallback?: string;

packages/adapter-static/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* fallback?: string;
66
* }} [opts]
77
*/
8-
export default function ({ pages = 'build', assets = pages, fallback = null } = {}) {
8+
export default function ({ pages = 'build', assets = pages, fallback } = {}) {
99
/** @type {import('@sveltejs/kit').Adapter} */
1010
const adapter = {
1111
name: '@sveltejs/adapter-static',

0 commit comments

Comments
 (0)