// Copyright 2017-2026 @pezkuwi/dev authors & contributors // SPDX-License-Identifier: Apache-2.0 export class Clazz { #something = 123_456_789; readonly and: number; static staticProperty = 'foobar'; static staticFunction = (): string | null => Clazz.staticProperty; /** * @param and the number we should and with */ constructor (and: number) { this.and = and; this.#something = this.#something & and; } get something (): number { return this.#something; } async doAsync (): Promise { const res = await new Promise((resolve) => resolve(true)); console.log(res); return res; } /** * @description Sets something to something * @param something The addition */ setSomething = (something?: number): number => { this.#something = (something ?? 123_456) & this.and; return this.#something; }; toString (): string { return `something=${this.#something}`; } }