happy-opfs • Docs
happy-opfs / assertFileUrl
function assertFileUrl(fileUrl): void
Asserts that the provided URL is a valid file URL.
Parameter | Type | Description |
---|---|---|
fileUrl |
string |
The file URL to validate. |
void
Will throw an error if the URL is not a valid file URL.