Skip to content

Commit

Permalink
Merge pull request #14 from seamapi/typedoc
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x authored Oct 11, 2023
2 parents 10cb4b3 + 1477063 commit 0d2d902
Show file tree
Hide file tree
Showing 7 changed files with 235 additions and 109 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,14 @@ jobs:
node_version: ${{ matrix.node }}
- name: Typecheck
run: npm run typecheck
docs:
name: Docs
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup
uses: ./.github/actions/setup
- name: Build docs
run: npm run docs:build
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
!ava.config.js

# Build directories
docs
package

# Environment versions file
Expand Down
314 changes: 207 additions & 107 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"prebuild:ts": "del 'index.*' 'connect.*' 'lib'",
"postbuild:ts": "tsc-alias --project tsconfig.build.json",
"typecheck": "tsc",
"docs:build": "typedoc",
"test": "c8 ava",
"pretest": "tsx src/index.ts",
"test:update": "ava --update-snapshots",
Expand Down Expand Up @@ -110,6 +111,7 @@
"tsup": "^7.2.0",
"tsx": "^3.12.1",
"type-fest": "^4.3.1",
"typedoc": "^0.25.2",
"typescript": "^5.1.0"
}
}
1 change: 1 addition & 0 deletions src/lib/seam/connect/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from './options.js'
export * from './routes//index.js'
export * from './seam-http.js'
5 changes: 3 additions & 2 deletions src/lib/seam/connect/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ interface SeamHttpCommonOptions extends ClientOptions {
endpoint?: string
}

export type SeamHttpFromPublishableKeyOptions = SeamHttpCommonOptions
export interface SeamHttpFromPublishableKeyOptions
extends SeamHttpCommonOptions {}

export type SeamHttpOptionsFromEnv = SeamHttpCommonOptions
export interface SeamHttpOptionsFromEnv extends SeamHttpCommonOptions {}

export interface SeamHttpOptionsWithClient {
client: Client
Expand Down
10 changes: 10 additions & 0 deletions typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://typedoc.org/schema.json",
"includeVersion": true,
"entryPoints": ["src/index.ts", "src/connect.ts"],
"out": "docs",
"tsconfig": "./tsconfig.build.json",
"navigationLinks": {
"GitHub": "https://github.com/seamapi/react"
}
}

0 comments on commit 0d2d902

Please sign in to comment.