Преглед на файлове

fix(docs): remove parameter from example that's not in the api [skip ci] (#5471)

* Remove parameter from example that's not in the API

* Update filter extensions

Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
Webber Takken преди 2 години
родител
ревизия
cb6ee77e69
променени са 1 файла, в които са добавени 1 реда и са изтрити 2 реда
  1. 1 2
      tooling/api/src/dialog.ts

+ 1 - 2
tooling/api/src/dialog.ts

@@ -177,10 +177,9 @@ async function open(
  * ```typescript
  * import { save } from '@tauri-apps/api/dialog';
  * const filePath = await save({
- *   multiple: true,
  *   filters: [{
  *     name: 'Image',
- *     extensions: ['stronghold']
+ *     extensions: ['png', 'jpeg']
  *   }]
  * });
  * ```