Skip to content

Commit

Permalink
add return types
Browse files Browse the repository at this point in the history
  • Loading branch information
brandenrodgers committed Sep 27, 2023
1 parent 58625e7 commit 713849f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/cms/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ type Config = {
};
};

function createEndpoint(endpointMethod: string, filename: string) {
function createEndpoint(
endpointMethod: string,
filename: string
): { method: string; file: string } {
return {
method: endpointMethod || 'GET',
file: filename,
Expand Down Expand Up @@ -62,7 +65,7 @@ function writeConfig(configFilePath: string, config: Config): void {
function updateExistingConfig(
configFilePath: string,
{ endpointPath, endpointMethod, functionFile }: ConfigInfo
) {
): void {
let configString!: string;
try {
configString = fs.readFileSync(configFilePath).toString();
Expand Down

0 comments on commit 713849f

Please sign in to comment.