Class ProjectLibrary

The primary location for interacting with all the resources in the current project. A complete hierarchy of resources is provided which can be interacted with by importing new ones, deleting them, moving, renaming and similar.

Constructors

Properties

Accessors

Methods

Events

Constructors

Properties

packageFileExtension = ".rpak"

The file extension for the RSX package format. The string includes the dot filename separate.

Accessors

  • get allResourcesRoot(): Iterable<DirectoryEntry>
  • Returns all Directory Entries representing root folders that are not engine internals.

    Returns Iterable<DirectoryEntry>

  • get asyncPackageOperationProgress(): number
  • Returns the progress of asynchronous package operations, in range [0, 1]. Returns 1.0 if all operations are complete or none have even started.

    All async operations that are started while there is another async operation in progress are considered as part of the same import session. This means that queuing further async operations can result in the progress number decreasing rather than increasing.

    Returns number

  • get codeFolder(): FilePath
  • Returns the path to the project's code folder where all the raw code files are stored.

    Returns FilePath

  • get editorRoot(): DirectoryEntry
  • Returns the editor root library entry that contains the editor internal resources.

    Returns DirectoryEntry

  • get engineInternalResourcesRoot(): Iterable<DirectoryEntry>
  • Returns the Directory Entries of all the engines internal root folders.

    Returns Iterable<DirectoryEntry>

  • get engineRoot(): DirectoryEntry
  • Returns the engine root library entry that contains the engine internal resources.

    Returns DirectoryEntry

  • get importInProgress(): boolean
  • Checks whether an asset import is currently in progress.

    Returns boolean

  • get importProgress(): number
  • Returns the import progress for all active import operations, in range [0, 1]. Returns 1.0 if import is complete or has not even started.

    All import operations that are started while there is another import operation in progress are considered as part of the same import session. This means that queuing further import operations can result in the progress number decreasing rather than increasing.

    Returns number

  • get libraryIconSize(): number
  • Gets the size of the library icon image.

    Returns number

    When assigning a new library icon, ensure that the dimensions match this constant. Otherwise a blit operation is required.

  • get projectFolder(): FilePath
  • Returns the path to the project's root folder.

    Returns FilePath

  • get resourcesFolder(): FilePath
  • Returns the path to the project's resource folder where all the assets are stored.

    Returns FilePath

  • get root(): DirectoryEntry
  • Returns the project root library entry that contains the project's library.

    Returns DirectoryEntry

Methods

  • Adds the given tag to the given Resource Entry.

    Parameters

    Returns void

  • Cancels any queued import tasks. Note that you must call finalizeAsyncOperations() for the import state to be updated. If the import task has already started you will need to wait until it finishes as there is no way to stop running tasks. If the provided file entry isn't being imported, or has already finished imported, the function does nothing.

    Returns void

  • Checks if the library contains a resource with the specified UUID.

    Parameters

    • uuid: UUID

      The uuid of the resource to get the path for.

    Returns boolean

    True if the resource is part of the library.

  • Copies a list of library entries from one path to another.

    Parameters

    • sourcesPath: LibraryIdentifierPath[]

      A list of library entries path to copy from. Absolute or relative to resources folder.

    • destinationsPath: LibraryIdentifierPath[]

      A list of destinations paths where each entry will be copied to. Absolute or relative to resources folder.

    • Optionaloverwrite: boolean

      If an entry already exists at the destination path, should it be overwritten.

    Returns void

  • Creates an empty package in the library or returns an existing one if there is one already.

    Parameters

    Returns FileEntry

    Newly created file entry, or null if not successful.

  • Registers a new resource in the library. This will add the resource to the package at the provided identifierPath if one exists, or create a new package otherwise.

    Parameters

    • resource: Resource

      Resource instance to add to the library.

    • identifierPath: LibraryIdentifierPath

      Path where where to store the resource. Absolute or relative to the resources folder. Path must include path to the package to store the resource in, as well as relative path in the package to store the resource under.

    • Optionalclone: boolean

      If true the contents of the resource will be saved as they are in the current state. This allows you to freely modify the existing copy of the resource after the call.

    • Optionalflags: EnumValue<ProjectLibraryEntryMetaDataFlags, number>

      Optional resource meta flags.

    • OptionalownerUserID: UUID

      Optional ID of the owner of the resource. The owner might be different from the creator. If a resource has an owner, only the owner can write to the resource.

    Returns ResourceEntry

    Newly created resource entry or null if creation failed.

    The write operation is executed asynchronously on a worker thread and you must not modify the resource contents until this operation completes. If this is not possible the set the clone parameter to true.

  • Registers a new resource in the library. This will create a package for the resource and store the file at the virtual libraryPath. The project library assumes that the resource is the main resource inside the package, and the package file name will match the UUID of the resource.

    Parameters

    • resource: Resource

      Resource instance to add to the library.

    • libraryPath: LibraryIdentifierPath

      The virtual library path where where to store the resource inside the new package.

    • Optionalclone: boolean

      If true the contents of the resource will be saved as they are in the current state. This allows you to freely modify the existing copy of the resource after the call.

    • Optionalflags: EnumValue<ProjectLibraryEntryMetaDataFlags, number>

      Optional resource meta flags.

    • OptionalownerUserID: UUID

      Optional ID of the owner of the resource. The owner might be different from the creator. If a resource has an owner, only the owner can write to the resource.

    Returns ResourceEntry

    Newly created resource entry or null if creation failed.

    The write operation is executed asynchronously on a worker thread and you must not modify the resource contents until this operation completes. If this is not possible the set the clone parameter to true.

  • Creates a new virtual folder in the library.

    Parameters

    Returns void

    This will create a temporary package to hold the folder. The package will be removed once the engine restarts.

  • Deletes an entry from the library.

    Parameters

    • pathOrPaths: LibraryIdentifierPath | readonly LibraryIdentifierPath[]

      If LibraryIdentifierPath: Path of the entry, absolute or relative to resources folder.

      If LibraryIdentifierPath: A list of paths of entries, absolute or relative to resources folder.

    Returns void

  • Determines if all dependencies for the resource with the specified uuid are available in the project library. If the method returns false, a load would trigger a potential blocking download of all dependencies.

    Parameters

    • uuid: UUID

      The uuid of the resource to get the path for.

    Returns boolean

    An optional that determines the availability, if no optional is returned, the UUID is invalid.

    This method does not check that all streaming has been downloaded. Only whether the corresponding main resources are available and loadable. If a dependency has been deleted from the project, it's considered to be available.

  • Checks whether the project library contains a file or folder at the specified path.

    Parameters

    • path: LibraryIdentifierPath

      Path to the file/folder to check, absolute or relative to resources folder.

    • OptionalsearchInsidePackages: boolean

      True, the system will check within package's virtual file system. False, only directories or files residing in the actual file system will be considered.

    Returns boolean

    True if the element exists, false otherwise.

  • Attempts to find whether or not a library entry exists at the given path, without taking packages into account. If you want to precisely find a entry from the path, within a specific package, use findEntry() instead.

    e.g: "Meshes" folder could be present both in PackageA and in PackageB. Use this function if you need to check if any entry "Meshes" exists, regardless of its parent Package. If you want the specific "Meshes" entry from PackageA, use findEntry() instead.

    Parameters

    • path: FilePath

      Path to the entry you want to search for. Either absolute or relative to the resources folder. If the given path contains a package within, it will be ignored, and other entries could be found from other packages.

    Returns boolean

    Whether the entry exists or not at the given path.

  • Iterates over queued operations, checks if they have finished and finalizes them. This should be called on a regular basis (e.g. every frame). If wait is true the method will block the calling thread until all queued operations complete.

    Parameters

    • Optionalwait: boolean

    Returns void

  • Gets all resource entries that depend on the specified uuid with the spcified requiredFlags. If the requiredFlags are None all dependents will be included.

    Parameters

    • uuid: UUID

      The UUID that the resources depend on.

    • OptionalrequiredFlags: EnumValue<AffixResourceFlags, number>

      The flags to filter for. If None the filter is disabled.

    Returns ResourceEntry[]

    The dependent resource entries.

    The dependency is setup via the ResourceMetaData.

  • Searches the project library for any resources that referencing (are dependent) on the resource at the provided path.

    Parameters

    • path: LibraryIdentifierPath

      Path of the resource for which to looks for dependents. Absolute or relative to the resources folder.

    Returns ResourceEntry[]

    List of resource entries referencing on the provided resource.

  • Gets all resource entries that are part of the polyverseLibraryID. Optionally a polyverseAssetID can be specified to lookup only a particular entry.

    Parameters

    • polyverseLibraryID: UUID

      The UUID that of the Polyverse library.

    • OptionalpolyverseAssetID: UUID

      The UUID of the Polyverse asset.

    Returns ResourceEntry[]

    The resource entries.

  • Finds all resources that were imported from the provided source asset path.

    Parameters

    • sourcePath: FilePath

      Absolute path to the source asset.

    Returns ResourceEntry[]

    A list of resources imported from asset at sourcePath.

  • Looks up the identifier path for the resource with the specified UUID. The identifier path is absolute.

    Parameters

    • uuid: UUID

      The uuid of the resource to get the path for.

    Returns LibraryIdentifierPath

  • Converts a relative or absolute project library path into a corresponding path in the 'Code' folder. Useful for retrieving the code file for a particular resource entry. Note this method will return the path without checking if the input path has a valid code file.

    Parameters

    • options: {
          isEditorCodeFile: boolean;
          path: LibraryIdentifierPath;
      } | {
          isEditorCodeFile: boolean;
          uuid: UUID;
      }

      Options object for the function call.

    Returns FilePath

  • Finds the entries that reside at the folder in the virtual library path.

    Parameters

    • folderLibraryPath: LibraryIdentifierPath

      The virtual library path of the folder.

    • uniqueDirectoryEntries: boolean

      True to only include the first found directory entry with identical names but in different packages.

    • OptionalrootType: EnumValue<ProjectRootType, number>

    Returns LibraryEntry[]

    A collection of LibraryEntry.

  • Gets the entry with the specified uuid.

    Parameters

    Returns LibraryEntry

    The LibraryEntry or null if not item was found.

  • Attempts to a find a library entry at the specified path.

    Parameters

    • identifierPath: LibraryIdentifierPath

      Path to the entry, either absolute or relative to resources folder.

    • searchInsidePackages: boolean

      When true the entry returned can be a directory or a resource entry within the package's virtual file system. When false only directories or files residing in the actual file system will be returned.

    • OptionalonlyInProjectLibrary: boolean

    Returns LibraryEntry

    Found entry, or null if not found. Value returned by this method is transient, it may be destroyed on any following ProjectLibrary call.

  • Finds the entry that represents the provided virtual library path.

    Parameters

    • libraryPath: LibraryIdentifierPath

      The virtual library path to search for.

    • Optionalindex: number

      The index of the element. If multiple elements share the same virtual path, you can iterate through all items by specifying a higher index. Once the end of the list was reached, the API will return null.

    • OptionalrootType: EnumValue<ProjectRootType, number>

    Returns LibraryEntry

    The LibraryEntry or null if not item was found.

    Multiple LibraryEntry might occupy same virtual library path. Usindexe the to select which of the entries to return.

  • Checks how far along is the import for the specified file.

    Parameters

    • path: FilePath

      Path to the resource to check the progress for, absolute or relative to the resources folder.

    Returns number

    Reports 1 if the file is fully imported. Reports 0 if the import has not started or the file isn't even queued for import. Reports >= 0 if the file is in process of being imported. Note that not all importers support fine grained progress reporting, in which case the import progress will be reported as a binary 0 or 1.

  • Returns the library icons for the resource at the provided path.

    Parameters

    • options: {
          path: LibraryIdentifierPath;
          requestCreation?: boolean;
      } | {
          requestCreation?: boolean;
          uuid: UUID;
      }

      Options object for the function call.

    Returns ProjectLibraryEntryIcons

    The library icons, or null if no library icons are available.

    If the library entry does not support library icons, no request will be emitted.

  • Attempts to a find a library entry at the specified path.

    Parameters

    • identifierPath: LibraryIdentifierPath

      Path to the entry, either absolute or relative to resources folder.

    Returns LibraryEntry

    Found entry, or null if not found. Value returned by this method is transient, it may be destroyed on any following ProjectLibrary call.

  • Looks up the identifier path for the resource with the specified UUID. The path is relative to the root resource folder.

    Parameters

    • uuidOrResource: UUID | Resource

      If UUID: The uuid of the resource to get the path for.

      If Resource: The resource to get the path for.

    Returns LibraryIdentifierPath

    The relative identifier path for the entry with the specified uuid.

  • Gets the entry with the specified identifierPath.

    Parameters

    Returns ResourceEntry

    The ResourceEntry or null if not item was found.

  • Gets the entry with the specified uuid.

    Parameters

    Returns ResourceEntry

    The ResourceEntry or null if not item was found.

  • Attempts to a find a meta information for a resource at the specified path.

    Parameters

    • identifierPathOrUuid: LibraryIdentifierPath | UUID

      If LibraryIdentifierPath: Path to the entry, either absolute or relative to resources folder. If a sub-resource within a package is needed, append the name of the subresource to the path (for example path/to/package.rpak/path/to/subresource).

      If UUID: Path to the entry, either absolute or relative to resources folder. If a sub-resource within a package is needed, append the name of the subresource to the path (for example path/to/package.rpak/path/to/subresource).

    Returns ResourceEntryMetaData

    The found meta or null.

  • Retrieves an absolute path to the resource from a path relative to the project library folder. If the provided path is already absolute it is then returned as is.

    Parameters

    Returns FilePath

  • Get the size of the resource in bytes.

    Parameters

    • resourcePathOrResourceEntry: FilePath | ResourceEntry

      If FilePath: The resource path to check for.

      If ResourceEntry: The resource entry to check for.

    Returns number

  • Get the size of the resource in bytes.

    Parameters

    • uuid: UUID

      The resource UUID to get the streaming data size for.

    Returns number

    The optional streaming data size, null if the resource is non-streaming.

  • Returns the source asset path an asset was imported from.

    Parameters

    • path: LibraryIdentifierPath

      Path to the resource for which to retrieve the source file path. Can absolute or relative to the project library.

    Returns FilePath

    Absolute path to the source asset file for the provided resource path, if empty string if not available.

  • Returns the underlying type of the Resource for the provided resource type enum.

    Parameters

    Returns Type

  • Checks if there is any Operation in progress targeting the given entry path.

    Parameters

    • resourcePath: FilePath

      The path to the entry to look for. Absolute or relative to the Library folder.

    Returns boolean

    Whether or not there is a operation in progress for the given path.

  • Imports a source asset using the provided import options and stores the output assets at the provided path.

    Parameters

    • sourcePath: FilePath

      Absolute path to the asset to import.

    • libraryPath: LibraryIdentifierPath

      The virtual library path at which to store the imported assets.

    • OptionalimportOptions: ImportOptions

      Optional import options to use when importing the resource. Caller must ensure the import options are of the correct type for the resource in question. If null is provided default import options are used.

    • OptionalfileInformation: ImportFileInformation

    Returns void

  • Determines if the code-file at the specified uuid is dirty.

    Parameters

    Returns boolean

    Unlike the identifier path based API, this API is not Thread safe.

  • Determines if the code-file at the specified identifierPath is dirty.

    Parameters

    Returns boolean

    Thread safe.

  • Returns true if the resource entry has a code file representation.

    Parameters

    Returns boolean

  • Checks if the library is currently in the process of generating a preview for the provided path.

    Parameters

    Returns boolean

  • Checks if the given path is form a engine internal source.

    Parameters

    Returns boolean

  • Determines if the libraryEntry supports preview generation.

    Parameters

    Returns boolean

  • Determines if the streaming data for the resource is available on disk.

    Parameters

    Returns boolean

  • Determines if the resource is streaming data dynamically.

    Parameters

    Returns boolean

  • Loads a resource by its giving path.

    Parameters

    • resourcePath: FilePath

      Absolute or relative to the Project Folder path to the given resource.

    • flags: EnumValue<ResourceLoadFlag, number>

      The flags to load the resource with.

    • synchronous: boolean

      Whether we should load synchronous or not.

    Returns Resource

  • Loads a resource from the project library.

    Type Parameters

    Parameters

    • type: ClassOf<T>

      Type of the resource to load.

    • path: LibraryIdentifierPath | FilePath

      Path of the resource to load. Absolute or relative to the resources folder. If a sub-resource within a file is needed, append the name of the subresource to the path ( for example mymesh.fbx/my_animation).

    • Optionalflags: EnumValue<ResourceLoadFlag, number>

      Flags used to control the load process.

    Returns T

    Instance of the loaded resource. Null if not found or not created yet, or mismatching type.

  • Performs move.

    Parameters

    Returns void

  • Parses a path in format: "C:\path\to\package.rpak\path\to\resource". And separates it into separate path to the package and the library path (relative path to the resource within the package).

    Parameters

    Returns ParsedLibraryEntryIdentifierPath

    false if the path could not be parsed.

  • Checks if any resources at the specified path have been modified, added or deleted, and updates the internal hierarchy accordingly.

    Parameters

    • path: LibraryIdentifierPath

      Path of the file or folder to check. If a folder is provided all its children will be checked recursively. Folder or file needs to be child of one of our root entries.

    Returns boolean

    Returns true if any changes were made.

  • Reimports a source asset using the provided import options and stores it at the provided path. All existing assets referencing the provided source asset path will be updated (if they are still available in the source asset). Any new assets will be stored at destination path.

    Parameters

    • sourcePath: FilePath

      Absolute path to the source asset to reimport.

    • destinationPath: LibraryIdentifierPath

      Path at which to store the newly imported assets, absolute or relative to resources folder. Must be a package.

    • OptionalimportOptions: ImportOptions

      Optional import options to use when importing new assets. Caller must ensure the import options are of the correct type for the resource in question. If null is provided default import options are used. Existing assets will use their current import options.

    Returns void

  • Reimport a single asset from their source file. Uses the import options currently bound to the asset.

    Parameters

    • path: LibraryIdentifierPath

      Path to the resource to reimport, absolute or relative to the resources folder.

    Returns void

  • Reimports all the provided resources from their source file(s). Uses the import options currently bound to the assets.

    Parameters

    • paths: LibraryIdentifierPath[]

      Array of paths of the assets to reimport, absolute or relative to the resources folder.

    • importOptions: ImportOptions[]

      An optional array of import options where each entry corresponds to an entry in the paths array. The previous import options cached on the ResourceEntry will be used if the entry in importOptions is null, or the importOptions array is smaller than the index of the corresponding entry in paths.

    Returns void

  • Removes the tag from the given Resource Entry.

    Parameters

    Returns void

  • Updates a resource that is already in the library.

    Note that the write operation is executed asynchronously on a worker thread and you must not modify the resource contents until this operation completes. If this is not possible the set the clone parameter to true.

    Parameters

    • resource: Resource

      Resource instance to add to the library.

    • Optionalclone: boolean

      If true the contents of the resource will be saved as they are in the current state. This allows you to freely modify the existing copy of the resource after the call.

    Returns AsyncOp<ProjectLibraryOperationResult, void>

  • Saves the resource meta data.

    Parameters

    • identifierPathOrUuid: LibraryIdentifierPath | UUID

      If LibraryIdentifierPath: Identifier Path to the resource to modify, absolute or relative to resources folder.

      If UUID: Identifier Path to the resource to modify, absolute or relative to resources folder.

    Returns AsyncOp<ProjectLibraryOperationResult, void>

    To modify the ResourceMetaData the resource must be loaded, and the resource meta data must be modified driectly on the Resource.

  • Searches inside the given library path with a pattern, and filters all entries matching it.

    Parameters

    Returns LibraryEntry[]

    A list of entries matching the pattern.

  • Searches the library for resources matching a pattern, but only among resources whose type matches one of the entries in specified types.

    Parameters

    Returns ResourceEntry[]

    A array of ResourceEntry matching the pattern.

  • Searches the library for resources matching a pattern, but only among resources whose type matches one of the entries in the specified types.

    Parameters

    • pattern: string

      Pattern to search for. Use wildcard * to match any character.

    • Rest...types: Type[]

      Types of resources to search for.

    Returns ResourceEntry[]

    A array of ResourceEntry matching the pattern.

  • Assigns a non-specific editor data object to the resource at the specified path.

    Parameters

    • options: {
          userData: any;
          uuid: Const<UUID>;
      } | {
          identifierPath: string;
          userData: any;
      }

      The options.

    Returns void

  • Assigns a library icon to use for the resource at the provided path.

    Parameters

    • options: {
          icon: Texture;
          path: LibraryIdentifierPath;
          stripAlpha: boolean;
      } | {
          icon: Texture;
          stripAlpha: boolean;
          uuid: UUID;
      }

      Options object for the function call.

    Returns void

  • Assigns a library icon to use for the resource type.

    Parameters

    Returns void

    The icon is cached for the type of the resourceEntry so it's enough to set this value once.

  • Set the source asset path an the asset at path was imported from.

    Parameters

    • path: LibraryIdentifierPath

      Path to the resource for which to retrieve the source file path. Can be absolute or relative to the project library.

    • newSourcePath: FilePath

      The new absolute path to the new resource source fila path.

    Returns void

  • Synchronizes all code files from the file-system to their corresponding packages.

    Returns number

    the number of synchronized code files.

    Only valid if an code-sync operation was started.

  • Synchronizes the code file at the provided path to its corresponding package.

    Parameters

    • uuidOrIdentifierPath: LibraryIdentifierPath | UUID

      If UUID: The UUID of the package to synchronize.

      If LibraryIdentifierPath: Path of the entry to check, either relative to the resources folder or absolute. Can point to an individual resource or a directory/package. All sub-entries will be iterated recursively.

    Returns boolean

    True upon success.

  • Iterates over the provided entry and all children recursively. If any code resources are found their corresponding code files will be generated and stored in the 'Source' directory. Any existing code files will be merged based on the specified merge mode.

    Parameters

    Returns number

    The number of code files generated.

Events

onEntryRemove: Event<[LibraryEntry], void>

Triggered whenever a file or directory entry is about to be removed from the library.

onEntryRemoved: Event<[LibraryIdentifierPath], void>

Triggered whenever a file or directory entry is removed from the library. The provided path is an identifier path.

onEntryAdded: Event<[LibraryEntry], void>

Triggered whenever a file or directory entry is added to the library. The provided path is an identifier path.

onEntryModified: Event<[LibraryIdentifierPath, string, EnumValue<LibrarySubOperationType, number>], void>

Triggered whenever contents of a file (package) are modified. The provided path is an identifier path.

onEntryMovedOrRenamed: Event<[LibraryIdentifierPath, LibraryIdentifierPath], void>

Triggered whenever an entry is renamed or moved. The provided paths are identifier paths.

onEntryImported: Event<[LibraryIdentifierPath], void>

Triggered when a source asset is being (re)imported. The provided path is an identifier path.

onEntryLibraryIconGenerationRequested: Event<[LibraryIdentifierPath], void>

Triggered when the generation of a library icon is requested. The provided path is an identifier path.

onResourceTypeIconRequested: Event<[ResourceEntry], void>

Triggered when the generation of a static per-type library icon is requested. The specified ResourceEntry triggered the request.

onEntryLibraryIconUpdated: Event<[LibraryIdentifierPath], void>

Triggered when the generation of a library icon is completed. The provided path is an identifier path.

onEntryImportFailed: Event<[readonly ResourceImportError[]], void>

Triggered when import errors occurred.

onEntryConflictStateChanged: Event<[LibraryIdentifierPath, boolean], void>

Triggered when an entry's conflict state changed. The provided path is an identifier path.

onCodeSyncToPackage: Event<[LibraryIdentifierPath], void>

Triggered when a ICodeResource has been synced from the file-system to a pacakge. The provided path is an identifier path.

onCodeSyncToFileSystem: Event<[LibraryIdentifierPath], void>

Triggered when a ICodeResource is being been synced from the package to the file-system. The provided path is an identifier path.

This event only indicates that a sync begins, it does not indicate that the file-system counterpart was update or written. Use the onCodeSyncToFileSystemUpdateComplete event to handle this event. If no change to the file-system counterpart is needed, no event will be fired. If the sync event requires a merge, the onCodeSyncMergeRequest will be triggered to allow a merge request to be fullfilled. If the event is not handled, the built-in Three-Way-Merge will attempt to solve the merge. If the merge failed, the event onCodeSyncToFileSystemUpdateFailed will be triggered. If the ICodeResource does not support syncing to the file system, no event will be triggered at all.

onCodeSyncModuleDefinitionToFileSystem: Event<[LibraryIdentifierPath], void>

Triggered when a sync of a module definition to the filesystem begins.

onCodeSyncModuleDefinitionToFileSystemFailed: Event<[LibraryIdentifierPath], void>

Triggered when a sync of a module definition to the filesystem failed.

onCodeSyncModuleDefinitionToFileSystemComplete: Event<[LibraryIdentifierPath], void>

Triggered when a sync of a module definition to the filesystem completed.

onCodeSyncToFileSystemUpdateFailed: Event<[LibraryIdentifierPath], void>

Triggered when a ICodeResource was attempted to be synced from the package to the file-system but failed. The provided path is an identifier path.

onCodeSyncToFileSystemUpdateComplete: Event<[LibraryIdentifierPath], void>

Triggered when a ICodeResource has been synced from the package to the file-system. The provided path is an identifier path.

onCodeSyncMergeRequest: Event<[LibraryIdentifierPath, string, string, string], string>

Triggered when a ICodeResource is synced in merge mode. The listener must return with an updated source-code. The provided path is an identifier path.

onImportFileConsumed: Event<[FilePath], void>

Triggered when an import has ended and the file is no longer required by the importer.