From a3ee3152ca23bbc25a9d63c2be9befe10f16ab6b Mon Sep 17 00:00:00 2001 From: adroitwhiz Date: Fri, 10 Mar 2023 13:07:36 -0500 Subject: [PATCH] Rename scratchblocks options --- src/io/scratchblocks/toScratchblocks.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/io/scratchblocks/toScratchblocks.ts b/src/io/scratchblocks/toScratchblocks.ts index f516b4f5..9b24aa8f 100644 --- a/src/io/scratchblocks/toScratchblocks.ts +++ b/src/io/scratchblocks/toScratchblocks.ts @@ -11,19 +11,19 @@ export interface ToScratchblocksOptions { export default function toScratchblocks( project: Project, - options: Partial = {} + inOptions: Partial = {} ): { [targetName: string]: string; } { const defaultOptions: ToScratchblocksOptions = { indent: "\t" }; - const fullOptions = { ...defaultOptions, ...options }; + const options = { ...defaultOptions, ...inOptions }; function indent(str: string): string { return str .split("\n") - .map(l => fullOptions.indent + l) + .map(l => options.indent + l) .join("\n"); }