abstractResource <T>
Hierarchy
Index
Constructors
constructor
Type parameters
- T: Directory | File
Returns Resource<T>
Accessors
isAsync
Returns boolean
abstractname
The name of the referenced file
Returns string
progress
Returns undefined | ProgressTracker
Parameters
value: undefined | ProgressTracker
Returns void
Methods
abstractresolve
Returns Promise<T>
setPlayground
Parameters
playground: UniversalPHP
Returns void
staticcreate
Creates a new Resource based on the given file reference
Parameters
ref: FileReference | DirectoryReference
The file reference to create the Resource for
options: { corsProxy?: string; progress?: ProgressTracker; semaphore?: default }
Additional options for the Resource
Returns Resource<Directory | File>
A new Resource instance
Whether this Resource is loaded asynchronously