Skip to content

Commit c4cf513

Browse files
razor-xseambot
andauthored
fix: Use empty interface for no options type (#352)
* fix: Use empty interface for no options type * ci: Generate code --------- Co-authored-by: Seam Bot <[email protected]>
1 parent 2ef8085 commit c4cf513

File tree

55 files changed

+409
-273
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+409
-273
lines changed

codegen/layouts/partials/route-class-endpoint-export.hbs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,10 @@ export type {{responseTypeName}} = SetNonNullable<
1414

1515
export type {{requestTypeName}} = SeamHttpRequest<{{#if returnsVoid}}void, undefined{{else}}{{responseTypeName}}, '{{responseKey}}'{{/if}}>
1616

17-
export type {{optionsTypeName}} = {{#if returnsActionAttempt}}Pick<SeamHttpRequestOptions, 'waitForActionAttempt'>{{else}}Record<string, never>{{/if}}
17+
18+
{{#if returnsActionAttempt}}
19+
export type {{optionsTypeName}} = Pick<SeamHttpRequestOptions, 'waitForActionAttempt'>
20+
{{else}}
21+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
22+
export interface {{optionsTypeName}} {}
23+
{{/if}}

src/lib/seam/connect/routes/access-codes/access-codes.ts

Lines changed: 20 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/seam/connect/routes/access-codes/simulate/simulate.ts

Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.ts

Lines changed: 10 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/seam/connect/routes/access-grants/access-grants.ts

Lines changed: 10 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/seam/connect/routes/access-methods/access-methods.ts

Lines changed: 6 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/seam/connect/routes/acs/access-groups/access-groups.ts

Lines changed: 12 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/seam/connect/routes/acs/access-groups/unmanaged/unmanaged.ts

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/seam/connect/routes/acs/credential-pools/credential-pools.ts

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/seam/connect/routes/acs/credential-provisioning-automations/credential-provisioning-automations.ts

Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)