5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-10 02:40:26 +08:00
wails/v3/internal/parser/testdata/enum/frontend/bindings/main/models.ts
Lea Anthony 2bb25b12ff
Update bindings generator to generate bindings in packages and files.
Remove unused JavaScript files
Update tests.
Update v3 docs
2023-12-22 20:01:42 +11:00

31 lines
743 B
TypeScript

// @ts-check
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
// Title is a title
export enum Title {
// Mister is a title
Mister = "Mr",
Miss = "Miss",
Ms = "Ms",
Mrs = "Mrs",
Dr = "Dr",
}
// Person represents a person
export class Person {
title: Title;
name: string;
constructor(source: Partial<Person> = {}) {
const {title = null, name = ""} = source;
this.title = title;
this.name = name;
}
static createFrom(source: string | object = {}): Person {
let parsedSource = typeof source === 'string' ? JSON.parse(source) : source;
return new Person(parsedSource as Partial<Person>);
}
}