types: pass DocType down to subdocuments so HydratedSingleSubdocument
and HydratedArraySubdocument
toObject()
returns correct type
#2338
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: TypeScript Benchmark | |
on: | |
pull_request: | |
paths: | |
- ".github/workflows/benchmark.yml" | |
- "package.json" | |
- "types/**" | |
- "benchmarks/typescript/**" | |
push: | |
branches: | |
- master | |
paths: | |
- ".github/workflows/benchmark.yml" | |
- "package.json" | |
- "types/**" | |
- "benchmarks/typescript/**" | |
permissions: | |
contents: read | |
jobs: | |
typescript: | |
runs-on: ubuntu-20.04 | |
name: Benchmark TypeScript Types | |
steps: | |
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | |
with: | |
fetch-depth: 0 | |
- name: Setup node | |
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | |
with: | |
node-version: 16 | |
- run: npm install | |
- run: node ./scripts/create-tarball.js | |
- run: npm run ts-benchmark |