Type Alias SNBTParseErrorCauseStackItem
SNBTParseErrorCauseStackItem: | { error?: | { argument: string; functionName: "bool" | "uuid"; type: "InvalidArgumentToFunction"; } | { functionName: string; type: "UnsupportedFunction" } | { raw: any; type: "UnsupportedSNBTPrimitive" } | { raw: any; type: "InvalidSNBTString" }; function: "parseSNBTPrimitive"; input: any; positionInInput: number; } | { error: { type: "InvalidUUID"; uuid: string }; function: "uuidToIntArray"; input: string; positionInInput: number; } | { arrayType: `${B | S | I | L}`; error?: | { allowedTypes: `${B | S | I | L}`[]; itemType: `${B | S | I | L}`; type: "DisallowedTypeInTypedArray"; } | { itemType?: `${TagType}`; type: "UnsupportedTypeInTypedArray" }; function: "parseTypedArray"; inputItem: string; inputItemIndex: number; inputItems: string[]; positionInInputItem: number; } | { error?: { detectedArrayType: `${TagType}`; item: Tags[TagType]; itemType: `${TagType}`; type: "MixedListTypesNotAllowed"; }; function: "parseList"; inputItem: string; inputItemIndex: number; inputItems: string[]; positionInInputItem: number; } | { error?: { raw: any; type: "InvalidSNBTKey" }; function: "extractSNBT" | "parseSNBTCompoundString"; input: string; key?: string; positionInInput: number; } Type declaration
- {
error?:
| {
argument: string;
functionName: "bool"
| "uuid";
type: "InvalidArgumentToFunction";
}
| { functionName: string; type: "UnsupportedFunction" }
| { raw: any; type: "UnsupportedSNBTPrimitive" }
| { raw: any; type: "InvalidSNBTString" };
function: "parseSNBTPrimitive";
input: any;
positionInInput: number;
}Optionalerror?:
| {
argument: string;
functionName: "bool"
| "uuid";
type: "InvalidArgumentToFunction";
}
| { functionName: string; type: "UnsupportedFunction" }
| { raw: any; type: "UnsupportedSNBTPrimitive" }
| { raw: any; type: "InvalidSNBTString" }
function: "parseSNBTPrimitive"
input: any
positionInInput: number
- {
error: { type: "InvalidUUID"; uuid: string };
function: "uuidToIntArray";
input: string;
positionInInput: number;
}error: { type: "InvalidUUID"; uuid: string }
type: "InvalidUUID"
uuid: string
function: "uuidToIntArray"
input: string
positionInInput: number
- {
arrayType: `${B | S | I | L}`;
error?:
| {
allowedTypes: `${B
| S
| I
| L}`[];
itemType: `${B | S | I | L}`;
type: "DisallowedTypeInTypedArray";
}
| { itemType?: `${TagType}`; type: "UnsupportedTypeInTypedArray" };
function: "parseTypedArray";
inputItem: string;
inputItemIndex: number;
inputItems: string[];
positionInInputItem: number;
}arrayType: `${B | S | I | L}`
Optionalerror?:
| {
allowedTypes: `${B
| S
| I
| L}`[];
itemType: `${B | S | I | L}`;
type: "DisallowedTypeInTypedArray";
}
| { itemType?: `${TagType}`; type: "UnsupportedTypeInTypedArray" }
function: "parseTypedArray"
inputItem: string
inputItemIndex: number
inputItems: string[]
positionInInputItem: number
- {
error?: {
detectedArrayType: `${TagType}`;
item: Tags[TagType];
itemType: `${TagType}`;
type: "MixedListTypesNotAllowed";
};
function: "parseList";
inputItem: string;
inputItemIndex: number;
inputItems: string[];
positionInInputItem: number;
}Optionalerror?: {
detectedArrayType: `${TagType}`;
item: Tags[TagType];
itemType: `${TagType}`;
type: "MixedListTypesNotAllowed";
}
detectedArrayType: `${TagType}`
itemType: `${TagType}`
type: "MixedListTypesNotAllowed"
function: "parseList"
inputItem: string
inputItemIndex: number
inputItems: string[]
positionInInputItem: number
- {
error?: { raw: any; type: "InvalidSNBTKey" };
function: "extractSNBT" | "parseSNBTCompoundString";
input: string;
key?: string;
positionInInput: number;
}Optionalerror?: { raw: any; type: "InvalidSNBTKey" }
raw: any
type: "InvalidSNBTKey"
function: "extractSNBT" | "parseSNBTCompoundString"
input: string
Optionalkey?: string
positionInInput: number
A stack item in an SNBT parse error.