Skip to content

@loontail/minecraft-kit v0.8.14 / FileRef

Type alias: FileRef

ts
type FileRef: {
  category: string;
  target: string;
  url: string;
};

Reference to a single file used in download events.

Example

ts
import { EventTypes, type FileRef } from "@loontail/minecraft-kit";

await kit.install.run(plan, {
  onEvent: (e) => {
    if (e.type === EventTypes.DOWNLOAD_COMPLETED) {
      const file: FileRef = e.file;
      console.log(`fetched ${file.url} → ${file.target}`);
    }
  },
});

Type declaration

MemberType
categorystring
targetstring
urlstring

Source

src/types/events.ts:73

MIT License