Skip to content

Commit 0d2d902

Browse files
authored
Merge pull request #14 from seamapi/typedoc
2 parents 10cb4b3 + 1477063 commit 0d2d902

File tree

7 files changed

+235
-109
lines changed

7 files changed

+235
-109
lines changed

.github/workflows/check.yml

+11
Original file line numberDiff line numberDiff line change
@@ -124,3 +124,14 @@ jobs:
124124
node_version: ${{ matrix.node }}
125125
- name: Typecheck
126126
run: npm run typecheck
127+
docs:
128+
name: Docs
129+
runs-on: ubuntu-latest
130+
timeout-minutes: 30
131+
steps:
132+
- name: Checkout
133+
uses: actions/checkout@v3
134+
- name: Setup
135+
uses: ./.github/actions/setup
136+
- name: Build docs
137+
run: npm run docs:build

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
!ava.config.js
1414

1515
# Build directories
16+
docs
1617
package
1718

1819
# Environment versions file

package-lock.json

+207-107
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"prebuild:ts": "del 'index.*' 'connect.*' 'lib'",
5353
"postbuild:ts": "tsc-alias --project tsconfig.build.json",
5454
"typecheck": "tsc",
55+
"docs:build": "typedoc",
5556
"test": "c8 ava",
5657
"pretest": "tsx src/index.ts",
5758
"test:update": "ava --update-snapshots",
@@ -110,6 +111,7 @@
110111
"tsup": "^7.2.0",
111112
"tsx": "^3.12.1",
112113
"type-fest": "^4.3.1",
114+
"typedoc": "^0.25.2",
113115
"typescript": "^5.1.0"
114116
}
115117
}

src/lib/seam/connect/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
export * from './options.js'
2+
export * from './routes//index.js'
23
export * from './seam-http.js'

src/lib/seam/connect/options.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ interface SeamHttpCommonOptions extends ClientOptions {
1010
endpoint?: string
1111
}
1212

13-
export type SeamHttpFromPublishableKeyOptions = SeamHttpCommonOptions
13+
export interface SeamHttpFromPublishableKeyOptions
14+
extends SeamHttpCommonOptions {}
1415

15-
export type SeamHttpOptionsFromEnv = SeamHttpCommonOptions
16+
export interface SeamHttpOptionsFromEnv extends SeamHttpCommonOptions {}
1617

1718
export interface SeamHttpOptionsWithClient {
1819
client: Client

typedoc.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "https://typedoc.org/schema.json",
3+
"includeVersion": true,
4+
"entryPoints": ["src/index.ts", "src/connect.ts"],
5+
"out": "docs",
6+
"tsconfig": "./tsconfig.build.json",
7+
"navigationLinks": {
8+
"GitHub": "https://github.com/seamapi/react"
9+
}
10+
}

0 commit comments

Comments
 (0)