Files
zap-es/test/fixtures/import-foo.ts
Victor BerchetGitHubrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
999f6c9b04 chore(deps): update all non-major dependencies (#63)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-15 21:05:43 +01:00

32 lines
970 B
TypeScript

// This file has been automatically generated by capnp-es.
import * as $ from "capnp-es";
import { Baz } from "./import-bar.js";
export const _capnpFileId = 0xfc552bdafbb0b889n;
export class Foo extends $.Struct {
static readonly BAZ_CONST = $.readRawPointer(new Uint8Array([16, 2, 64, 1, 0, 0]).buffer);
static readonly _capnp = {
displayName: "Foo",
id: "f92e265d07c50136",
size: new $.ObjectSize(0, 1),
};
_adoptBaz(value: $.Orphan<Baz>): void {
$.utils.adopt(value, $.utils.getPointer(0, this));
}
_disownBaz(): $.Orphan<Baz> {
return $.utils.disown(this.baz);
}
get baz(): Baz {
return $.utils.getStruct(0, Baz, this);
}
_hasBaz(): boolean {
return !$.utils.isNull($.utils.getPointer(0, this));
}
_initBaz(): Baz {
return $.utils.initStructAt(0, Baz, this);
}
set baz(value: Baz) {
$.utils.copyFrom(value, $.utils.getPointer(0, this));
}
toString(): string { return "Foo_" + super.toString(); }
}