mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-13 15:39:31 +08:00
23 lines
652 B
TypeScript
23 lines
652 B
TypeScript
// @ts-check
|
|
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
|
// This file is automatically generated. DO NOT EDIT
|
|
|
|
export namespace main {
|
|
|
|
|
|
export class Person {
|
|
name: string; // Warning: this is unexported in the Go struct.
|
|
|
|
constructor(source: Partial<Person> = {}) {
|
|
const { name = "" } = source;
|
|
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>);
|
|
}
|
|
|
|
}
|
|
|
|
} |