Skip to content

Commit

Permalink
feat: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
andresgutgon committed Oct 24, 2024
1 parent 9759175 commit 14e1d1f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
10 changes: 5 additions & 5 deletions packages/sdks/typescript/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ function getKlass(apiVersion: SdkApiVersion) {
type RunOptions<V extends SdkApiVersion> = V extends 'v1'
? BaseRunOptions
: V extends 'v2'
? V2RunOptions
: {}
? V2RunOptions
: {}

class Latitude<V extends SdkApiVersion> {
sdk: V extends 'v1' ? LatitudeSdkV1 : LatitudeSdkV2
Expand All @@ -58,9 +58,9 @@ class Latitude<V extends SdkApiVersion> {
__internal,
apiVersion = 'v1',
}: Options = {
apiVersion: 'v1',
gateway: DEFAULT_GAWATE_WAY,
},
apiVersion: 'v1',
gateway: DEFAULT_GAWATE_WAY,
},
) {
this.apiVersion = apiVersion as V
const SDKlass = getKlass(apiVersion)
Expand Down
1 change: 0 additions & 1 deletion packages/sdks/typescript/src/versions/LatitudeSdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ export class LatitudeSdk {
onError,
}: BaseRunOptions & { stream?: boolean },
) {

console.log('this.projectId', this.projectId)
console.log('projectId', projectId)

Expand Down

0 comments on commit 14e1d1f

Please sign in to comment.