Skip to content
Type

FilePath

A path to a file. File paths can be relative or absolute, and be local paths or full URLs. Paths must be POSIX-like, using / as the separator.

Examples of valid paths:

  • 'video.mp4'
  • 'path/to/video.mp4'
  • './video.mp4'
  • '../video.mp4'
  • '/path/to/video.mp4'
  • 'https://example.com/video.mp4'
  • 'file:///home/user/video.mp4'
  • 'video.mp4?key=foo'
ts
type FilePath = string;

Used by

Released under the Mozilla Public License 2.0.