@wayward/types 2.12.0-beta.dev.20220929.2 → 2.12.0-beta.dev.20220929.4
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.
|
@@ -16,6 +16,7 @@ import type ItemManager from "game/item/ItemManager";
|
|
|
16
16
|
export interface IItemFinderOptions extends Partial<IGetBestItemsOptions> {
|
|
17
17
|
replace?(): Item[] | undefined;
|
|
18
18
|
fallback?: ItemFinder;
|
|
19
|
+
postFilter?(item: Item): boolean;
|
|
19
20
|
}
|
|
20
21
|
export default class ItemFinder {
|
|
21
22
|
private readonly options;
|
|
@@ -176,7 +176,7 @@ export default class Component<E extends HTMLElement = HTMLElement> extends Even
|
|
|
176
176
|
/**
|
|
177
177
|
* Returns the `nth` child, defaulting to the first child
|
|
178
178
|
*/
|
|
179
|
-
getNthChild<C extends Component | undefined = Component | undefined>(nth?: number): C;
|
|
179
|
+
getNthChild<C extends Component | undefined = Component | undefined>(nth?: number): C | undefined;
|
|
180
180
|
/**
|
|
181
181
|
* Returns a stream of this component's child components. Child elements that don't have associated components will be `undefined`.
|
|
182
182
|
* @param selector A selector that each element must match to be included in the result stream
|
|
@@ -328,6 +328,7 @@ export default class Component<E extends HTMLElement = HTMLElement> extends Even
|
|
|
328
328
|
*/
|
|
329
329
|
schedule(ms: number, debounce: number, cb?: (this: this, component: this) => any, ...args: any[]): this;
|
|
330
330
|
protected onContextMenu(api: IBindHandlerApi): boolean;
|
|
331
|
+
private entered;
|
|
331
332
|
protected onEnter(reason: "mouse" | "focus"): void;
|
|
332
333
|
private menuCancelHideTooltip;
|
|
333
334
|
protected onLeave(reason: "mouse" | "focus" | "remove"): void;
|
package/package.json
CHANGED