Skip to content

Commit e7b790c

Browse files
authored
🏷️ Export discriminated interfaces for SchemaRestPullRequestActivity (#17)
1 parent 4480cc6 commit e7b790c

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

+214
-156
lines changed

package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"ts-autofix": "^1.0.0",
6565
"tsx": "^4.19.1",
6666
"typedoc": "^0.26.10",
67-
"typescript": "^5.6.3",
67+
"typescript": "5.7.0-beta",
6868
"typescript-eslint": "^8.10.0",
6969
"vitest": "^2.1.3"
7070
},
@@ -78,9 +78,17 @@
7878
"types": "./dist/cloud/index.d.ts",
7979
"default": "./dist/cloud/index.js"
8080
},
81+
"./cloud/openapi": {
82+
"types": "./dist/cloud/openapi/index.d.ts",
83+
"default": "./dist/cloud/openapi/index.js"
84+
},
8185
"./server": {
8286
"types": "./dist/server/index.d.ts",
8387
"default": "./dist/server/index.js"
88+
},
89+
"./server/openapi": {
90+
"types": "./dist/server/openapi/index.d.ts",
91+
"default": "./dist/server/openapi/index.js"
8492
}
8593
},
8694
"types": "dist/index.d.ts",

pnpm-lock.yaml

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

src/base64.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { test } from "vitest"
2-
import { fromBase64, toBase64 } from "./base64.js"
2+
import { fromBase64, toBase64 } from "./base64.ts"
33

44
test("toBase64", ({ expect }) => {
55
const based = toBase64("Copyright © 2024 CodeRabbit")

src/cloud/client.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { test } from "vitest"
2-
import { createBitbucketCloudClient } from "./client.js"
2+
import { createBitbucketCloudClient } from "./client.ts"
33

44
test("createBitbucketCloudClient", ({ expect }) => {
55
const client = createBitbucketCloudClient()

src/cloud/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Client, ClientOptions } from "openapi-fetch"
22
import createClient from "openapi-fetch"
3-
import type { paths } from "./openapi/index.js"
3+
import type { paths } from "./openapi/index.ts"
44

55
/**
66
* Creates an `openapi-fetch` client using {@link createClient}.

src/cloud/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export * from "./client.js"
2-
export type * from "./openapi/index.js"
1+
export * from "./client.ts"
2+
export type * as OpenApi from "./openapi/index.ts"

src/cloud/openapi/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export type * from "./openapi-typescript.js"
1+
export type * from "./openapi-typescript.ts"

src/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { test } from "vitest"
2-
import * as index from "./index.js"
2+
import * as index from "./index.ts"
33

44
test("index", ({ expect }) => {
55
expect(index).toBeDefined()

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export * from "./base64.js"
2-
export * as cloud from "./cloud/index.js"
3-
export * as server from "./server/index.js"
1+
export * from "./base64.ts"
2+
export * as BitbucketCloud from "./cloud/index.ts"
3+
export * as BitbucketServer from "./server/index.ts"

src/server/client.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { test } from "vitest"
2-
import { createBitbucketServerClient } from "./client.js"
2+
import { createBitbucketServerClient } from "./client.ts"
33

44
test("createBitbucketServerClient", ({ expect }) => {
55
const client = createBitbucketServerClient()

0 commit comments

Comments
 (0)