@datapos/datapos-tool-file-operators 0.0.15 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
1
  import { FileTypeResult } from 'file-type';
2
2
  import { DataFormatId } from '@datapos/datapos-shared/component/dataView';
3
3
  /**
4
- * File preview configuration.
4
+ * File preview result.
5
5
  */
6
- interface FilePreviewConfig {
6
+ interface FilePreviewResult {
7
7
  bytes: Uint8Array;
8
8
  dataFormatId: DataFormatId | undefined;
9
9
  encodingId: string | undefined;
@@ -18,6 +18,6 @@ declare class Tool {
18
18
  /**
19
19
  * Preview file.
20
20
  */
21
- previewFile(url: string, signal: AbortSignal, chunkSize?: number): Promise<FilePreviewConfig>;
21
+ previewFile(url: string, signal: AbortSignal, chunkSize?: number): Promise<FilePreviewResult>;
22
22
  }
23
- export { type FilePreviewConfig, Tool };
23
+ export { type FilePreviewResult, Tool };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datapos/datapos-tool-file-operators",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "private": false,