Skip to content

Commit

Permalink
chore: apply automated updates
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Aug 18, 2024
1 parent 6fb0e00 commit f7ba098
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions test/bench/data/capnp/schema.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
// This file has been automatically generated by capnp-es.
// This file has been automatically generated by capnp-es.
import * as $ from "capnp-es";
export const _capnpFileId = BigInt("0xef1b5abe02e1f8d4");
export const Person_PhoneNumber_Type = {
MOBILE: 0,
HOME: 1,
WORK: 2
WORK: 2,
} as const;
export type Person_PhoneNumber_Type = (typeof Person_PhoneNumber_Type)[keyof typeof Person_PhoneNumber_Type];
export type Person_PhoneNumber_Type =
(typeof Person_PhoneNumber_Type)[keyof typeof Person_PhoneNumber_Type];
export class Person_PhoneNumber extends $.Struct {
static readonly Type = Person_PhoneNumber_Type;
static readonly _capnp = {
displayName: "PhoneNumber",
id: "af663da31c027e0e",
size: new $.ObjectSize(8, 1)
size: new $.ObjectSize(8, 1),
};
get number(): string {
return $.Struct.getText(0, this);
Expand All @@ -34,9 +35,10 @@ export const Person_Employment_Which = {
UNEMPLOYED: 0,
EMPLOYER: 1,
SCHOOL: 2,
SELF_EMPLOYED: 3
SELF_EMPLOYED: 3,
} as const;
export type Person_Employment_Which = (typeof Person_Employment_Which)[keyof typeof Person_Employment_Which];
export type Person_Employment_Which =
(typeof Person_Employment_Which)[keyof typeof Person_Employment_Which];
export class Person_Employment extends $.Struct {
static readonly UNEMPLOYED = Person_Employment_Which.UNEMPLOYED;
static readonly EMPLOYER = Person_Employment_Which.EMPLOYER;
Expand All @@ -45,7 +47,7 @@ export class Person_Employment extends $.Struct {
static readonly _capnp = {
displayName: "employment",
id: "e88780a90af3da0c",
size: new $.ObjectSize(8, 4)
size: new $.ObjectSize(8, 4),
};
isUnemployed(): boolean {
return $.Struct.getUint16(4, this) === 0;
Expand Down Expand Up @@ -93,7 +95,7 @@ export class Person extends $.Struct {
static readonly _capnp = {
displayName: "Person",
id: "d94307c4985be8e7",
size: new $.ObjectSize(8, 4)
size: new $.ObjectSize(8, 4),
};
static _Phones: $.ListCtor<Person_PhoneNumber>;
get id(): number {
Expand Down Expand Up @@ -146,7 +148,7 @@ export class AddressBook extends $.Struct {
static readonly _capnp = {
displayName: "AddressBook",
id: "c06ea6d038a357bb",
size: new $.ObjectSize(0, 1)
size: new $.ObjectSize(0, 1),
};
static _People: $.ListCtor<Person>;
adoptPeople(value: $.Orphan<$.List<Person>>): void {
Expand Down

0 comments on commit f7ba098

Please sign in to comment.