Skip to content

Commit

Permalink
feat: Add TypeScript support (#9550)
Browse files Browse the repository at this point in the history
  • Loading branch information
dblythy authored Jan 30, 2025
1 parent a97d418 commit 59e46d0
Show file tree
Hide file tree
Showing 11 changed files with 2,925 additions and 153 deletions.
6 changes: 3 additions & 3 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"plugins": [
"@babel/plugin-transform-flow-strip-types",
"@babel/plugin-proposal-object-rest-spread"
"@babel/plugin-transform-flow-strip-types"
],
"presets": [
"@babel/preset-typescript",
["@babel/preset-env", {
"targets": {
"node": "14",
"node": "18"
},
"exclude": ["proposal-dynamic-import"]
}]
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,17 @@ jobs:
uses: mansona/npm-lockfile-version@v1
with:
version: 2
check-types:
name: Check Types
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: npm ci
- name: Build types
run: npm run build:types
- name: Check types
run: npm run test:types
check-mongo:
strategy:
matrix:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ node_modules

# Babel.js
lib/
# types/* once we have full typescript support, we can generate types from the typescript files
!types/tsconfig.json

# cache folder
.cache
Expand Down
Loading

0 comments on commit 59e46d0

Please sign in to comment.