LayerArtifact: {
    dependencies?: LayerArtifact[];
    exportedObjectName: string;
    filePath: string;
    sourceText: string;
}

Represents an artifact within a layer of the application being generated. The LayerArtifact instnance contains data about the path, where the artifact will be stored, the reference object being exported (i.e. exported object name), the source code to be written in the source file as well as any other dependent artifacts.

Type declaration

  • Optionaldependencies?: LayerArtifact[]

    A collection of artifacts that this artifact depends on. The dependent artifact are saved before this one.

  • exportedObjectName: string

    The name of the object that is exported from the source file being created. To be used as a reference to the object defined in this source file.

  • filePath: string

    Path where this artifact should be stored.

  • sourceText: string

    The source code of the source file.