Skip to content

Commit 02a277f

Browse files
authored
fix: Type error in docs creation (#10069)
1 parent 8bd7a22 commit 02a277f

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,29 @@ jobs:
111111
- name: Install dependencies
112112
run: npm ci
113113
- run: npm run madge:circular
114+
check-docs:
115+
name: Docs
116+
timeout-minutes: 5
117+
runs-on: ubuntu-latest
118+
steps:
119+
- uses: actions/checkout@v4
120+
- name: Use Node.js ${{ matrix.NODE_VERSION }}
121+
uses: actions/setup-node@v4
122+
with:
123+
node-version: ${{ matrix.node-version }}
124+
- name: Cache Node.js modules
125+
uses: actions/cache@v4
126+
with:
127+
path: ~/.npm
128+
key: ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
129+
restore-keys: |
130+
${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-
131+
- name: Install dependencies
132+
run: npm ci
133+
- name: Build source
134+
run: npm run build
135+
- name: Generate docs
136+
run: npm run docs
114137
check-docker:
115138
name: Docker Build
116139
timeout-minutes: 15

src/Adapters/Files/FilesAdapter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class FilesAdapter {
2626
/** Responsible for storing the file in order to be retrieved later by its filename
2727
*
2828
* @param {string} filename - the filename to save
29-
* @param {Buffer|import('stream').Readable} data - the file data as a Buffer, or a Readable stream if the adapter supports streaming (see supportsStreaming)
29+
* @param {Buffer|Readable} data - the file data as a Buffer, or a Readable stream if the adapter supports streaming (see supportsStreaming)
3030
* @param {string} contentType - the supposed contentType
3131
* @discussion the contentType can be undefined if the controller was not able to determine it
3232
* @param {object} options - (Optional) options to be passed to file adapter (S3 File Adapter Only)

0 commit comments

Comments
 (0)