Methods
(async, static) readFromFile(file, asnullable) → {Promise.<unknown>}
Reads various types of content from a given File object.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
file |
|||
as |
string |
<nullable> |
defines the expected type of the content |
- Source:
- See:
Returns:
- Type
- Promise.<unknown>