@wayward/types 2.14.4-beta.dev.20250107.1 → 2.14.4-beta.dev.20250108.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/definitions/game/game/entity/action/usable/IUsableAction.d.ts +1 -0
- package/definitions/game/game/entity/action/usable/UsableAction.d.ts +2 -0
- package/definitions/game/ui/screen/screens/game/component/ItemComponent.d.ts +1 -0
- package/definitions/utilities/object/Objects.d.ts +2 -1
- package/package.json +1 -1
@@ -51,6 +51,7 @@ export declare namespace IUsableActionRequirement {
|
|
51
51
|
validate(player: Player, value: TYPE): boolean;
|
52
52
|
}
|
53
53
|
type Always = true;
|
54
|
+
function isValid<T>(result: false | T | undefined, option: true | IUsableActionRequirement<T> | undefined): boolean;
|
54
55
|
}
|
55
56
|
export interface IUsableActionItemRequirement extends Omit<IUsableActionRequirement<Item>, "find"> {
|
56
57
|
validateType?(player: Player, value: ItemType, description?: IItemDescription): boolean;
|
@@ -66,6 +66,8 @@ declare class UsableAction<REQUIREMENTS extends IUsableActionRequirements = IUsa
|
|
66
66
|
private _disposed;
|
67
67
|
get disposed(): boolean;
|
68
68
|
constructor(requirements: REQUIREMENTS, definition: DEFINITION);
|
69
|
+
/** @deprecated For console use only */
|
70
|
+
protected get debug(): any;
|
69
71
|
addUser(user: UsableActionRegistrar): this;
|
70
72
|
removeUser(user: UsableActionRegistrar): this;
|
71
73
|
is(id?: ActionId): boolean;
|
@@ -106,6 +106,7 @@ export default class ItemComponent extends Component implements ItemSlot {
|
|
106
106
|
readonly draggable?: Draggable;
|
107
107
|
private transient;
|
108
108
|
protected constructor(handler: ItemComponentHandler, ...params: any[]);
|
109
|
+
/** @deprecated For console use only */
|
109
110
|
protected get debug(): any;
|
110
111
|
private tickEndHandlerReasons?;
|
111
112
|
private registerTickEndHandler;
|
@@ -51,10 +51,11 @@ declare namespace Objects {
|
|
51
51
|
function stringify(object: any, pretty?: boolean, noDepth?: boolean, maxIterations?: number): string;
|
52
52
|
namespace stringify {
|
53
53
|
const SYMBOL_EXCLUDED_PROPERTIES: unique symbol;
|
54
|
-
export function excludeProperties(...properties: string
|
54
|
+
export function excludeProperties(...properties: Array<string | object>): {
|
55
55
|
[SYMBOL_EXCLUDED_PROPERTIES]: string[];
|
56
56
|
};
|
57
57
|
export function isExcluded(object: any, property: string): boolean;
|
58
|
+
export function getExcluded(object: any): string[];
|
58
59
|
export {};
|
59
60
|
}
|
60
61
|
function mutable<T>(object: T): Mutable<T>;
|
package/package.json
CHANGED