UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

28 lines 716 B
/** * Heavily influenced by Hamcrest, pretty much a straight port * @template T */ export class Matcher<T> extends SelfDescribing { constructor(); /** * * @param {T} item * @param {Description} [mismatch_description] * @returns {boolean} */ matches(item: T, mismatch_description?: Description): boolean; /** * * @param {T} item * @param {Description} mismatch_description * @returns {void} */ describeMismatch(item: T, mismatch_description: Description): void; /** * @readonly * @type {boolean} */ readonly isMatcher: boolean; } import { SelfDescribing } from "./SelfDescribing.js"; //# sourceMappingURL=Matcher.d.ts.map