Skip to content

Commit

Permalink
fix: forgot to format
Browse files Browse the repository at this point in the history
  • Loading branch information
Maed223 committed Oct 13, 2023
1 parent 3104a3a commit 20551f9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tools/generate-function-bindings/scripts/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ async function generateFunctionBindings() {
const file = path.join(__dirname, FUNCTIONS_METADATA_FILE);
const json = JSON.parse((await fs.readFile(file)).toString())
.function_signatures as {
[name: string]: FunctionSignature;
};
[name: string]: FunctionSignature;
};

const staticMethods = Object.entries(json).map(([name, signature]) =>
renderStaticMethod(name, signature)
Expand Down Expand Up @@ -128,8 +128,8 @@ async function generateFunctionsMap() {
const file = path.join(__dirname, FUNCTIONS_METADATA_FILE);
const json = JSON.parse((await fs.readFile(file)).toString())
.function_signatures as {
[name: string]: FunctionSignature;
};
[name: string]: FunctionSignature;
};

const properties: t.ObjectProperty[] = [];

Expand Down Expand Up @@ -273,7 +273,8 @@ function mapParameter(p: Parameter) {
};
}
throw new Error(
`Function ${name} has parameter ${p.name
`Function ${name} has parameter ${
p.name
} with unsupported type ${JSON.stringify(p.type)}`
);
};
Expand Down

0 comments on commit 20551f9

Please sign in to comment.