FileRef and EntryRef typedefs

This commit is contained in:
2021-09-17 23:09:53 -06:00
parent 6bde91857c
commit 96d6acf48f
4 changed files with 8 additions and 2 deletions

View File

@@ -3,5 +3,5 @@ package nat;
typedef Entry = {
id:String,
components:Map<String, String>,
files:Array<String>
files:Array<FileRef>
};

View File

@@ -0,0 +1,3 @@
package nat;
typedef EntryRef = String;

View File

@@ -0,0 +1,3 @@
package nat;
typedef FileRef = String;

View File

@@ -7,7 +7,7 @@ import haxe.Json;
using haxe.io.Path;
typedef AttachmentProcessor = (Archive, Entry, Array<String>) -> Dynamic;
typedef AttachmentProcessor = (Archive, Entry, Array<FileRef>) -> Dynamic;
/**
* Base System that processes Entries based on whether they have file attachments