Skip to content

Commit

Permalink
feat: improve types
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacek Pietal committed Feb 24, 2022
1 parent 28b702a commit 30d0301
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { WSConfig } from "chef-core/dist/types";
export default function startChef(
userConfig: WSConfig
userConfig?: Partial<WSConfig>
): Promise<import("chef-core/dist/types").WSServer>;
//# sourceMappingURL=index.d.ts.map
2 changes: 1 addition & 1 deletion dist/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import chef from "chef-core";
import { WSConfig } from "chef-core/dist/types";
import { createServer, requestHandler } from "./server";

export default async function startChef(userConfig: WSConfig) {
export default async function startChef(userConfig?: Partial<WSConfig>) {
return await chef(
{ ...userConfig, type: "express" },
{ createServer, requestHandler }
Expand Down

0 comments on commit 30d0301

Please sign in to comment.