From 635285b8d05ece4a51fb7455f35787d96e6af051 Mon Sep 17 00:00:00 2001 From: Asaki Yuki Date: Mon, 2 Feb 2026 15:34:14 +0700 Subject: [PATCH] fix some type issue --- package.json | 2 +- resources/asajs.config.cjs | 2 +- src/compilers/ui/manifest.ts | 2 +- src/types/properties/element/Cycler.ts | 1 + src/types/properties/element/Layout.ts | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 7d29401..9afb704 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "asajs", - "version": "4.0.0", + "version": "4.0.1", "description": "Create your Minecraft JSON-UI resource packs using JavaScript", "keywords": [ "Minecraft", diff --git a/resources/asajs.config.cjs b/resources/asajs.config.cjs index 6d04ab7..1863140 100644 --- a/resources/asajs.config.cjs +++ b/resources/asajs.config.cjs @@ -6,7 +6,7 @@ export const config = { packinfo: { name: "AsaJS - Installer Test", description: "Create your Minecraft JSON-UI resource packs using JavaScript.", - version: [4, 0, 0], + version: [4, 0, 1], }, compiler: { enabled: true, diff --git a/src/compilers/ui/manifest.ts b/src/compilers/ui/manifest.ts index 4a38d33..bc2c4b0 100644 --- a/src/compilers/ui/manifest.ts +++ b/src/compilers/ui/manifest.ts @@ -1,7 +1,7 @@ import { config } from "../Configuration.js" import { getUUID } from "./linker.js" -export const version = config.packinfo?.version || [4, 0, 0] +export const version = config.packinfo?.version || [4, 0, 1] export async function genManifest() { const [uuid1, uuid2] = await getUUID() diff --git a/src/types/properties/element/Cycler.ts b/src/types/properties/element/Cycler.ts index b27fd19..8c8a79e 100644 --- a/src/types/properties/element/Cycler.ts +++ b/src/types/properties/element/Cycler.ts @@ -1,6 +1,7 @@ import { Value } from "../value.js" export interface Image { + fill?: Value texture_path?: Value texture?: Value } diff --git a/src/types/properties/element/Layout.ts b/src/types/properties/element/Layout.ts index b9c5503..782a3a3 100644 --- a/src/types/properties/element/Layout.ts +++ b/src/types/properties/element/Layout.ts @@ -2,7 +2,7 @@ import { Anchor } from "../../enums/Anchor.js" import { Value, AnimValue, Array2 } from "../value.js" export interface Layout { - offset?: AnimValue> + offset?: AnimValue> size?: AnimValue> max_size?: AnimValue> min_size?: AnimValue>