types(models+query): return lean
type when passing QueryOptions with lean: true
to relevant model functions like find()
and findOne()
#1729
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 Types | |
on: | |
pull_request: | |
paths: | |
- '.github/workflows/tsd.yml' | |
- 'package.json' | |
- 'types/**' | |
- 'test/types/**' | |
push: | |
branches: | |
- master | |
paths: | |
- '.github/workflows/tsd.yml' | |
- 'package.json' | |
- 'types/**' | |
- 'test/types/**' | |
permissions: | |
contents: read | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
name: Lint TS-Files | |
steps: | |
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | |
- name: Setup node | |
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # v3.7.0 | |
with: | |
node-version: 14 | |
- run: npm install | |
- name: Lint TS-Files | |
run: npm run lint-ts | |
test-ts-types: | |
needs: | |
- lint | |
runs-on: ubuntu-latest | |
name: Test Typescript Types | |
steps: | |
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | |
- name: Setup node | |
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # v3.7.0 | |
with: | |
node-version: 14 | |
- run: npm install | |
- name: Typings | |
run: npm run test-tsd |