Skip to content

Commit

Permalink
Add comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
huwshimi committed Feb 1, 2024
1 parent 321ca3f commit 067b321
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions generator/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,7 @@ export function generateTypes(

function isRequired(requiredArgs: string[], propertyName: string): boolean {
if (!requiredArgs.length) {
// If requiredArgs doesn't exist then it's likely that this is a
// response interface.
// If requiredArgs doesn't exist then all properties will be not required.
return false;
}
return requiredArgs.includes(propertyName);
Expand Down

0 comments on commit 067b321

Please sign in to comment.