Skip to content

Latest commit

 

History

History
31 lines (18 loc) · 593 Bytes

assertFileUrl.md

File metadata and controls

31 lines (18 loc) · 593 Bytes

happy-opfsDocs


happy-opfs / assertFileUrl

Function: assertFileUrl()

function assertFileUrl(fileUrl): void

Asserts that the provided URL is a valid file URL.

Parameters

Parameter Type Description
fileUrl string The file URL to validate.

Returns

void

Throws

Will throw an error if the URL is not a valid file URL.

Defined in

fs/assertions.ts:21