@meistrari/tela-sdk-js 0.0.2 → 0.0.3
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.
- package/dist/file.d.ts +5 -1
- package/dist/file.js +2 -2
- package/package.json +1 -1
package/dist/file.d.ts
CHANGED
|
@@ -17,6 +17,10 @@ export type TelaFileOptions = {
|
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
19
|
range?: [number, number];
|
|
20
|
+
/**
|
|
21
|
+
* Defines the parser provider to be used for the file.
|
|
22
|
+
*/
|
|
23
|
+
parserType?: string;
|
|
20
24
|
};
|
|
21
25
|
/**
|
|
22
26
|
* Represents the possible types for a file input,
|
|
@@ -120,4 +124,4 @@ export declare class TelaFile {
|
|
|
120
124
|
* @param file - The file input to create a `TelaFile` instance from.
|
|
121
125
|
* @returns A new `TelaFile` instance.
|
|
122
126
|
*/
|
|
123
|
-
export declare function createTelaFile(file: TelaFileInput): TelaFile;
|
|
127
|
+
export declare function createTelaFile(file: TelaFileInput, options?: TelaFileOptions): TelaFile;
|
package/dist/file.js
CHANGED
|
@@ -156,6 +156,6 @@ export class TelaFile {
|
|
|
156
156
|
* @param file - The file input to create a `TelaFile` instance from.
|
|
157
157
|
* @returns A new `TelaFile` instance.
|
|
158
158
|
*/
|
|
159
|
-
export function createTelaFile(file) {
|
|
160
|
-
return new TelaFile(file);
|
|
159
|
+
export function createTelaFile(file, options) {
|
|
160
|
+
return new TelaFile(file, options);
|
|
161
161
|
}
|