fix: Type error in docs creation (#10069)

This commit is contained in:
Manuel
2026-02-21 16:08:50 +00:00
committed by GitHub
parent 8bd7a228ee
commit 02a277f1e9
2 changed files with 24 additions and 1 deletions
+23
View File
@@ -111,6 +111,29 @@ jobs:
- name: Install dependencies
run: npm ci
- run: npm run madge:circular
check-docs:
name: Docs
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Cache Node.js modules
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-
- name: Install dependencies
run: npm ci
- name: Build source
run: npm run build
- name: Generate docs
run: npm run docs
check-docker:
name: Docker Build
timeout-minutes: 15
+1 -1
View File
@@ -26,7 +26,7 @@ export class FilesAdapter {
/** Responsible for storing the file in order to be retrieved later by its filename
*
* @param {string} filename - the filename to save
* @param {Buffer|import('stream').Readable} data - the file data as a Buffer, or a Readable stream if the adapter supports streaming (see supportsStreaming)
* @param {Buffer|Readable} data - the file data as a Buffer, or a Readable stream if the adapter supports streaming (see supportsStreaming)
* @param {string} contentType - the supposed contentType
* @discussion the contentType can be undefined if the controller was not able to determine it
* @param {object} options - (Optional) options to be passed to file adapter (S3 File Adapter Only)