mirror of
https://github.com/wavetermdev/wails.git
synced 2026-04-22 15:26:15 -07:00
26530a0f5a
Add model generation. Warn if field is unexported in the Go struct
25 lines
509 B
TypeScript
25 lines
509 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.
|
|
|
|
static createFrom(source: any = {}) {
|
|
return new Person(source);
|
|
}
|
|
|
|
constructor(source: any = {}) {
|
|
if ('string' === typeof source) {
|
|
source = JSON.parse(source);
|
|
}
|
|
|
|
this.name = source["name"]
|
|
|
|
}
|
|
}
|
|
|
|
}
|