Skip to content

Commit

Permalink
fix broken AdapterEntry type (#4674)
Browse files Browse the repository at this point in the history
* fix broken AdapterEntry type

* stfu
  • Loading branch information
Rich-Harris authored Apr 20, 2022
1 parent cef3326 commit 0c3f9a0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/pretty-bottles-listen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

fix broken AdapterEntry type
2 changes: 1 addition & 1 deletion packages/adapter-netlify/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default function ({ split = false, edge = edgeSetInEnvVar } = {}) {
if (split) {
throw new Error('Cannot use `split: true` alongside `edge: true`');
}

await generate_edge_functions({ builder });
} else {
await generate_lambda_functions({ builder, esm, split, publish });
Expand Down
2 changes: 1 addition & 1 deletion packages/kit/types/private.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export interface AdapterEntry {
*/
complete: (entry: {
generateManifest: (opts: { relativePath: string; format?: 'esm' | 'cjs' }) => string;
}) => Promise<void>;
}) => MaybePromise<void>;
}

// Based on https://github.com/josh-hemphill/csp-typed-directives/blob/latest/src/csp.types.ts
Expand Down

0 comments on commit 0c3f9a0

Please sign in to comment.