Debian Codegraph @

intl/icu_capi/bindings/js/ICU4XWeekOf.mjs

raw
1 import wasm from "./diplomat-wasm.mjs"
2 import * as diplomatRuntime from "./diplomat-runtime.mjs"
3 import { ICU4XWeekRelativeUnit_js_to_rust, ICU4XWeekRelativeUnit_rust_to_js } from "./ICU4XWeekRelativeUnit.mjs"
4
5 export class ICU4XWeekOf {
6 constructor(underlying) {
7 this.week = (new Uint16Array(wasm.memory.buffer, underlying, 1))[0];
8 this.unit = ICU4XWeekRelativeUnit_rust_to_js[diplomatRuntime.enumDiscriminant(wasm, underlying + 4)];
9 }
10 }