Skip to content

Commit

Permalink
fix(critters): use correct typescript type
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelhthomas committed Nov 18, 2024
1 parent 27776a5 commit 3dccf48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/critters/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ async function fixTypes() {
.readFile(declarationFile)
.then((b) => b.toString("utf-8"));
const updatedDeclaration = `import type { CrittersOptions as FullCrittersOptions } from "./CrittersOptions.ts";
export type CrittersOptions = Optional<FullCrittersOptions>;
export type CrittersOptions = Partial<FullCrittersOptions>;
${declaration.replace(/constructor\(.*?\)/, "constructor(options?: CrittersOptions)")}
`;
Expand Down

0 comments on commit 3dccf48

Please sign in to comment.