Skip to content

Commit

Permalink
Use .fromClient(this.client)
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x authored Sep 26, 2023
1 parent 82ea55f commit 5c80c34
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/lib/seam/connect/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,10 @@ export class SeamHttp {
}

get workspaces(): SeamHttpWorkspaces {
if (this.#legacy)
return new SeamHttpLegacyWorkspaces({ client: this.client })
return new SeamHttpWorkspaces({ client: this.client })
if (this.#legacy) {
return new SeamHttpLegacyWorkspaces.fromClient(this.client)

Check failure on line 67 in src/lib/seam/connect/client.ts

View workflow job for this annotation

GitHub Actions / Format code

A constructor name should not start with a lowercase letter

Check failure on line 67 in src/lib/seam/connect/client.ts

View workflow job for this annotation

GitHub Actions / Lint (Node.js v16)

A constructor name should not start with a lowercase letter

Check failure on line 67 in src/lib/seam/connect/client.ts

View workflow job for this annotation

GitHub Actions / Lint (Node.js v18)

A constructor name should not start with a lowercase letter

Check failure on line 67 in src/lib/seam/connect/client.ts

View workflow job for this annotation

GitHub Actions / Typecheck (Node.js v16)

'new' expression, whose target lacks a construct signature, implicitly has an 'any' type.

Check failure on line 67 in src/lib/seam/connect/client.ts

View workflow job for this annotation

GitHub Actions / Typecheck (Node.js v18)

'new' expression, whose target lacks a construct signature, implicitly has an 'any' type.

Check failure on line 67 in src/lib/seam/connect/client.ts

View workflow job for this annotation

GitHub Actions / Build / Package

'new' expression, whose target lacks a construct signature, implicitly has an 'any' type.
}
return new SeamHttpWorkspaces.fromClient(this.client)

Check failure on line 69 in src/lib/seam/connect/client.ts

View workflow job for this annotation

GitHub Actions / Format code

A constructor name should not start with a lowercase letter

Check failure on line 69 in src/lib/seam/connect/client.ts

View workflow job for this annotation

GitHub Actions / Lint (Node.js v16)

A constructor name should not start with a lowercase letter

Check failure on line 69 in src/lib/seam/connect/client.ts

View workflow job for this annotation

GitHub Actions / Lint (Node.js v18)

A constructor name should not start with a lowercase letter

Check failure on line 69 in src/lib/seam/connect/client.ts

View workflow job for this annotation

GitHub Actions / Typecheck (Node.js v16)

'new' expression, whose target lacks a construct signature, implicitly has an 'any' type.

Check failure on line 69 in src/lib/seam/connect/client.ts

View workflow job for this annotation

GitHub Actions / Typecheck (Node.js v18)

'new' expression, whose target lacks a construct signature, implicitly has an 'any' type.

Check failure on line 69 in src/lib/seam/connect/client.ts

View workflow job for this annotation

GitHub Actions / Build / Package

'new' expression, whose target lacks a construct signature, implicitly has an 'any' type.
}
}

Expand Down

0 comments on commit 5c80c34

Please sign in to comment.