FileTask
Extends:
src/index.js~API → FileTask
Direct Subclass:
Provides the base implementation for file-based tasks.
Test:
Static Method Summary
Static Public Methods | ||
public static |
getFileTypeFromURI(fileURI: string): string Returns the file type corresponding to the specified file URI. |
Constructor Summary
Public Constructor | ||
public |
constructor(apiKey: string, projectId: string, fileURI: string) Initializes a new instance of the class. |
Static Public Methods
public static getFileTypeFromURI(fileURI: string): string source
Returns the file type corresponding to the specified file URI.
Params:
Name | Type | Attribute | Description |
fileURI | string | The file URI. |
Return:
string | The file type corresponding to the specified file URI, or an empty string if the type is unknown. |