text stringlengths 14 100k | source stringclasses 1
value | repo stringclasses 810
values | language stringclasses 13
values |
|---|---|---|---|
<|fim_prefix|>import { CustomMethod } from "./service.js";
<|fim_suffix|>hod("everywhere");
<|fim_middle|>CustomMet<|endoftext|> | fim | wailsapp/wails | javascript |
<|fim_suffix|>everywhere again");
<|fim_prefix|>import { CustomMethod } from ".<|fim_middle|>/service.js";
CustomMethod("<|endoftext|> | fim | wailsapp/wails | javascript |
<|fim_prefix|>import { CustomMethod<|fim_suffix|>ethod("Interfaces");
<|fim_middle|> } from "./service.js";
CustomM<|endoftext|> | fim | wailsapp/wails | javascript |
import { CustomMethod } from "./service.js";
CustomMethod("TS");
<|endoftext|> | fim | wailsapp/wails | typescript |
<|fim_prefix|>impor<|fim_suffix|> from "./service.js";
CustomMethod("TS Interfaces");
<|fim_middle|>t { CustomMethod }<|endoftext|> | fim | wailsapp/wails | typescript |
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEID<|fim_suffix|>nused imports
import * as $models from "./models.js";
export function Method($0: $models.unexportedModel): $CancellablePromise<void> {
return $Call.ByName("main.unexportedService.Method", $0);
}
<|fim_middle|>IWCH Â MODIWL
// This file is aut... | fim | wailsapp/wails | typescript |
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO<|fim_suffix|>omment 2.
*/
export function Method2(): $CancellablePromise<void> {
return $Call.ByName("main.GreetService.Method2");
}
/**
* Comment 3a.
* Comment 3b.
*/
export function Method3():... | fim | wailsapp/wails | typescript |
<|fim_suffix|>rvice from "./greetservice.js";
export {
GreetService
};
<|fim_prefix|><|fim_middle|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
import * as GreetSe<|endoftext|> | fim | wailsapp/wails | typescript |
<|fim_suffix|>Greet", name, title);
}
/**
* NewPerson creates a new person
*/
export function NewPerson(name: string): $CancellablePromise<$models.Person | null> {
return $Call.ByName("main.GreetService.NewPerson", name);
}
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is ... | fim | wailsapp/wails | typescript |
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generat<|fim_suffix|>T
import * as GreetService from "./greetservice.js";
export {
GreetService
};
export {
Age,
Title
} from "./models.js";
export type {
Person
} from "./models.js";
<|fim_middle|>... | fim | wailsapp/wails | typescript |
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
/**
* Age is an integer with some predefined values
*/
export type Age = number;
<|fim_suffix|>Aged: 50,
/**
* Unbelievable!
*/
Mathusalem: 1000,
};
/**
* Person represe... | fim | wailsapp/wails | typescript |
<|fim_suffix|>s-comment
// @ts-ignore: Unused imports
import * as services$0 from "./services/models.js";
/**
* Greet does XYZ
*/
export function Greet(name: string, title: services$0.Title): $CancellablePromise<string> {
return $Call.ByName("main.GreetService.Greet", name, title);
}
<|fim_prefix|>// Cynhyrchwyd... | fim | wailsapp/wails | typescript |
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is autom<|fim_suffix|>lly generated. DO NOT EDIT
import * as GreetService from "./greetservice.js";
export {
GreetService
};
<|fim_middle|>atica<|endoftext|> | fim | wailsapp/wails | typescript |
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEID<|fim_suffix|>ort {
Title
} from "./models.js";
<|fim_middle|>IWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
exp<|endoftext|> | fim | wailsapp/wails | typescript |
<|fim_suffix|>Mister = "Mr",
Miss = "Miss",
Ms = "Ms",
Mrs = "Mrs",
Dr = "Dr",
};
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
export enum Title {
/**
* The Go zero value for the underlyi<|fim_middle|>ng type of t... | fim | wailsapp/wails | typescript |
<|fim_suffix|>h string enum keys
*/
export function GetStatusMessages(): $CancellablePromise<{ [_ in $models.Status]?: string } | null> {
return $Call.ByName("main.EnumMapService.GetStatusMessages");
}
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated.... | fim | wailsapp/wails | typescript |
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
import * as EnumMapService from "./enummapservice.js";
export {
EnumMapService
};
export {
Color,
Priority,
Status
} from "./models.js";
export type {
Person
} from "./models.js";
<|end... | fim | wailsapp/wails | typescript |
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT<|fim_suffix|>rent status values
*/
export enum Status {
/**
* The Go zero value for the underlying type of the enum.
*/
$zero = "",
StatusPending = "pending",
StatusRunnin... | fim | wailsapp/wails | typescript |
<|fim_suffix|>. DO NOT EDIT
export type {
SomeClass
} from "./models.js";
<|fim_prefix|><|fim_middle|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated<|endoftext|> | fim | wailsapp/wails | typescript |
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: Unused imports
import * as nobindingshere$0 from "../no_bindings_here/models.js";
/**
*<|fim_suffix|>SomeClass ren... | fim | wailsapp/wails | typescript |
<|fim_suffix|>
*/
export function NewPerson(name: string): $CancellablePromise<$models.Person | null> {
return $Call.ByName("main.GreetService.NewPerson", name);
}
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is aut<|fim_middle|>omatically generated. DO NOT EDIT
/**
* Gre... | fim | wailsapp/wails | typescript |
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
i<|fim_suffix|>eetService
};
export type {
Person
} from "./models.js";
<|fim_middle|>mport * as GreetService from "./greetservice.js";
export {
Gr<|endoftext|> | fim | wailsapp/wails | typescript |
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIW<|fim_suffix|>./services/models.js";
/**
* Person is a person
*/
export interface Person {
"Name": string;
"Address": services$0.Address | null;
}
<|fim_middle|>CH Â MODIWL
// This file is automatically generated. DO NOT EDIT
// eslint-disable-nex... | fim | wailsapp/wails | typescript |
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
import * as OtherService from "./otherservice.js";
export {
OtherService
};
export type {
Address
} from "./models.js";
<|endoftext|> | fim | wailsapp/wails | typescript |
<|fim_suffix|>": string;
"Country": string;
}
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
exp<|fim_middle|>ort interface Address {
"Street": string;
"State<|endoftext|> | fim | wailsapp/wails | typescript |
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
/**
* OtherService is a struct
* that does things
* @module
*/
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ign<|fim_suffix|>3/internal/generator/testcases/function... | fim | wailsapp/wails | typescript |
<|fim_suffix|>
* Greet does XYZ
*/
export function Greet(name: string): $CancellablePromise<string> {
return $Call.ByName("main.GreetService.Greet", name);
}
/**
* NewPerson creates a new person
*/
export function NewPerson(name: string): $CancellablePromise<$models.Person | null> {
return $Call.ByName("ma... | fim | wailsapp/wails | typescript |
<|fim_prefix|>// Cynhyrchwyd y ffei<|fim_suffix|>./models.js";
<|fim_middle|>l hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
import * as GreetService from "./greetservice.js";
export {
GreetService
};
export type {
Person
} from "<|endoftext|> | fim | wailsapp/wails | typescript |
<|fim_suffix|>ress | null;
}
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: Unused imports
import * as other$0 from "./services/other/models.js";
export inte<|fim... | fim | wailsapp/wails | typescript |
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically gene<|fim_suffix|>ted. DO NOT EDIT
import * as OtherService from "./otherservice.js";
export {
OtherService
};
export type {
Address
} from "./models.js";
<|fim_middle|>ra<|endoftext|> | fim | wailsapp/wails | typescript |
<|fim_suffix|>This file is automatically generated. DO NOT EDIT
export interface Address {
"Street": string;
"State": string;
"Country": string;
}
<|fim_prefix|>// Cynhyrchwyd y ffeil ho<|fim_middle|>n yn awtomatig. PEIDIWCH Â MODIWL
// <|endoftext|> | fim | wailsapp/wails | typescript |
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
/**
* OtherService is a struct
* that does things
* @module
*/
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: Unused imports
import { Call as $Call, Cancellab... | fim | wailsapp/wails | typescript |
<|fim_suffix|>time.js";
export function Greet(name: string): $CancellablePromise<string> {
return $Call.ByName("main.GreetService.Greet", name);
}
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated.<|fim_middle|> DO NOT EDIT
// eslint-disable-next-line... | fim | wailsapp/wails | typescript |
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtoma<|fim_suffix|>rvice.js";
export {
GreetService
};
<|fim_middle|>tig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
import * as GreetService from "./greetse<|endoftext|> | fim | wailsapp/wails | typescript |
<|fim_suffix|>("main.GreetService.Greet", name);
}
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
/**
* GreetService is great
* @module
*/
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: Unused imports
impor... | fim | wailsapp/wails | typescript |
<|fim_suffix|>This file is automatically generated. DO NOT EDIT
import * as GreetService from "./greetservice.js";
export {
GreetService
};
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWC<|fim_middle|>H Â MODIWL
// <|endoftext|> | fim | wailsapp/wails | typescript |
<|fim_suffix|>*
* Greet someone
*/
export function GreetWithContext(name: string): $CancellablePromise<string> {
return $Call.ByName("main.GreetService.GreetWithContext", name);
}
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
/**
* ... | fim | wailsapp/wails | typescript |
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL<|fim_suffix|> EDIT
import * as GreetService from "./greetservice.js";
export {
GreetService
};
<|fim_middle|>
// This file is automatically generated. DO NOT<|endoftext|> | fim | wailsapp/wails | typescript |
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
/**
* GreetService is great
* @module
*/
// eslint-disable-next-line @typescript-eslint/ban-ts-comm<|fim_suffix|>ll, CancellablePromise as $CancellablePromise } from "/wails/runtime.js";
/... | fim | wailsapp/wails | typescript |
<|fim_prefix|>// Cynhyrchwyd<|fim_suffix|>is automatically generated. DO NOT EDIT
import * as GreetService from "./greetservice.js";
export {
GreetService
};
<|fim_middle|> y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file <|endoftext|> | fim | wailsapp/wails | typescript |
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
import * as Service from "./service.js";
export {
Service
};
export type {
EmbeddedCustomInterface,
EmbeddedOriginalInterface,
EmbeddedPointer,
EmbeddedPointerPtr,
Embe... | fim | wailsapp/wails | typescript |
<|fim_suffix|>?: number } | null;
/**
* Soft reject
*/
"TPSPtr": { [_ in string]?: number } | null;
/**
* Soft reject
*/
"TPT": { [_ in string]?: number } | null;
/**
* Soft reject
*/
"TPTPtr": { [_ in string]?: number } | null;
/**
* Accept, hide
... | fim | wailsapp/wails | typescript |
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ign<|fim_suffix|>used imports
import * as $models from "./models.js";
export function Method(): $CancellablePromise<$models... | fim | wailsapp/wails | typescript |
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
import * as Service from "./service.js";
export {
Service
};
expo<|fim_suffix|>er,
PointerTextMarshaler,
UnderlyingJsonMarshaler,
UnderlyingMarshaler,
UnderlyingTextMarshal... | fim | wailsapp/wails | typescript |
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: Unused imports
import * as encoding$0 from "../../../../../../../../encoding/models.js";
// eslint-disable-next-line... | fim | wailsapp/wails | typescript |
<|fim_suffix|>hod");
}
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: Unused imports
import { Call as $Call, CancellablePromise as $CancellablePromise } from "/wai... | fim | wailsapp/wails | typescript |
<|fim_suffix|>* as SomeMethods from "./somemethods.js";
export {
SomeMethods
};
export type {
HowDifferent,
Impersonator,
Person,
PrivatePerson
} from "./models.js";
<|fim_prefix|>// Cynhyrchwyd y ffeil<|fim_middle|> hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NO... | fim | wailsapp/wails | typescript |
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: Unused imports
import * as other$0 from "./other/models.js";
/**
* HowDifferent is a curious kind of person
* tha... | fim | wailsapp/wails | typescript |
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWC<|fim_suffix|>enerated. DO NOT EDIT
export type {
StringPtr
} from "./models.js";
<|fim_middle|>H Â MODIWL
// This file is automatically g<|endoftext|> | fim | wailsapp/wails | typescript |
<|fim_suffix|>matically generated. DO NOT EDIT
/**
* StringPtr is a nullable string.
*/
export type StringPtr = string | null;
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. <|fim_middle|>PEIDIWCH Â MODIWL
// This file is auto<|endoftext|> | fim | wailsapp/wails | typescript |
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
import * as OtherMethods from "./othermethods.js";
export {
OtherMethods
};
export type {
OtherPerson
} from "./models.js";
<|endoftext|> | fim | wailsapp/wails | typescript |
<|fim_suffix|>.
*/
export interface OtherPerson<T> {
/**
* They have a name as well.
*/
"Name": string;
/**
* But they may have many differences.
*/
"Differences": T[] | null;
}
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically g... | fim | wailsapp/wails | typescript |
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
/**
* OtherMethods has another method, but through a private embedded type.
* @module
*/
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: Unused imports
import { Call as $Call... | fim | wailsapp/wails | typescript |
<|fim_suffix|>e
*/
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: Unused imports
import { Call as $Call, CancellablePromise as $CancellablePromise } from "/wails/runtime.js";
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: Unused imports
import * as $models ... | fim | wailsapp/wails | typescript |
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
/**
* EmbedOther is even trickier.
* @module
*/
// eslint-disable-next-line @typescript<|fim_suffix|>time.js";
/**
* LikeThisOtherOne does nothing as well, but is different.
*/
export fu... | fim | wailsapp/wails | typescript |
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
/**
* EmbedService is tricky.
* @module
*/
// eslint-disab<|fim_suffix|>
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: Unused imports
import * as nobindingshe... | fim | wailsapp/wails | typescript |
<|fim_prefix|>// Cy<|fim_suffix|> file is automatically generated. DO NOT EDIT
/**
* GreetService is great
* @module
*/
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: Unused imports
import { Call as $Call, CancellablePromise as $CancellablePromise } from "/wails/runtime.js";
/**
* G... | fim | wailsapp/wails | typescript |
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
import * as EmbedOther from "./embedother.js";
import * as EmbedService from "./em<|fim_suffix|>
GreetService
};
<|fim_middle|>bedservice.js";
import * as GreetService from "./greetservice.... | fim | wailsapp/wails | typescript |
<|fim_suffix|>
}
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: Unused imports
impo<|fim_middle|>rt { Call as $Call, CancellablePromise as $CancellablePromise } fr... | fim | wailsapp/wails | typescript |
<|fim_suffix|>ice.js";
export {
GreetService,
OtherService
};
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT <|fim_middle|>EDIT
import * as GreetService from "./greetservice.js";
import * as OtherService from "./otherserv<|endoftext|> | fim | wailsapp/wails | typescript |
<|fim_suffix|>nused imports
import { Call as $Call, CancellablePromise as $CancellablePromise } from "/wails/runtime.js";
export function Hello(): $CancellablePromise<void> {
return $Call.ByName("main.OtherService.Hello");
}
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is a... | fim | wailsapp/wails | typescript |
<|fim_suffix|>le is automatically generated. DO NOT EDIT
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: Unused imports
import { Call as $Call, CancellablePromise as $CancellablePromise } from "/wails/runtime.js";
export function Greet(name: string): $CancellablePromise<string> {
retu... | fim | wailsapp/wails | typescript |
<|fim_suffix|>greetservice.js";
import * as OtherService from "./otherservice.js";
export {
GreetService,
OtherService
};
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated<|fim_middle|>. DO NOT EDIT
import * as GreetService from "./<|endoftext|> | fim | wailsapp/wails | typescript |
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: Unused imports
import { Call as $Call, CancellablePromise as $CancellablePromise } from "/wails/runtime.js";
export function Hell... | fim | wailsapp/wails | typescript |
<|fim_suffix|>";
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: Unused imports
import * as $models from "./models.js";
/**
* Greet does XYZ
*/
export function Greet(name: string): $CancellablePromise<string> {
return $Call.ByName("main.GreetService.Greet", name);
}
/**
* NewPerso... | fim | wailsapp/wails | typescript |
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
import * as GreetService from "./greetservice.js";
expor<|fim_suffix|>e
};
export type {
Person
} from "./models.js";
<|fim_middle|>t {
GreetServic<|endoftext|> | fim | wailsapp/wails | typescript |
<|fim_suffix|>DIT
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: Unused imports
import * as services$0 from "./services/models.js";
export interface Person {
"Name": string;
"Address": services$0.Address | null;
}
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEI<|fim_mi... | fim | wailsapp/wails | typescript |
<|fim_suffix|> NOT EDIT
import * as OtherService from "./otherservice.js";
export {
OtherService
};
export type {
Address
} from "./models.js";
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
//<|fim_middle|> This file is automatically generated. DO<|endoftext|> | fim | wailsapp/wails | typescript |
<|fim_prefix|>//<|fim_suffix|>ace Address {
"Street": string;
"State": string;
"Country": string;
}
<|fim_middle|> Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
export interf<|endoftext|> | fim | wailsapp/wails | typescript |
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
/**
* OtherService is a struct
* that does things
* @module
*/
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// <|fim_suffix|>port * as $models from "./models.js";
/**
* ... | fim | wailsapp/wails | typescript |
<|fim_suffix|>nt32InIntOut", $in);
}
export function Int32PointerInAndOutput($in: number | null): $CancellablePromise<number | null> {
return $Call.ByName("main.GreetService.Int32PointerInAndOutput", $in);
}
export function Int64InIntOut($in: number): $CancellablePromise<number> {
return $Call.ByName("main.Gr... | fim | wailsapp/wails | typescript |
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
import * as GreetService from "./greetservice.js";
export {
GreetService
};
export type {
Person
} from "./models.js";
<|endoftext|> | fim | wailsapp/wails | typescript |
<|fim_suffix|>WL
// This file is automatically generated. DO NOT EDIT
export interface Person {
"Name": string;
"Parent": Person | null;
"Details": {"Age": number, "Address": {"Street": string}};
}
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MOD<|fim_middle|>I<|endoftext|> | fim | wailsapp/wails | typescript |
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
/**
* GreetService is great
* @module
*/
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: Unused imports
import { Call as $Call, CancellablePromise as $Cancellab... | fim | wailsapp/wails | typescript |
<|fim_suffix|>
} from "./models.js";
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically g<|fim_middle|>enerated. DO NOT EDIT
import * as GreetService from "./greetservice.js";
export {
GreetService
};
export type {
Person<|endoftext|> | fim | wailsapp/wails | typescript |
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn <|fim_suffix|>ull;
"Details": {"Age": number, "Address": {"Street": string}};
}
<|fim_middle|>awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
export interface Person {
"Name": string;
"Parent": Person | n<|endoftext|> | fim | wailsapp/wails | typescript |
<|fim_suffix|>peMappingService
};
export type {
AllTypes,
GenericType
} from "./models.js";
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
import * as TypeMappingService from "./typemappingservice.js";
e<|fim_middle|>xport {
Ty... | fim | wailsapp/wails | typescript |
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: Unused imports
import * as time$0 from "../../../../../../../../time/models.js";
/**
* AllTypes holds a field for ... | fim | wailsapp/wails | typescript |
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
/**
* TypeMappingService is a service for testing type mappings.
* @module
*/
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: Unused imports
import { Call as $Call, Cancellab... | fim | wailsapp/wails | typescript |
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
/**
* GreetService is great
* @module
*/
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: Unused imports
import { Call as $Call, CancellablePromise as $CancellablePromise } fr... | fim | wailsapp/wails | typescript |
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
import * as GreetService from "./greetservice.js";
export {
GreetService
};
<|endoftext|> | fim | wailsapp/wails | typescript |
<|fim_suffix|>all.ByName("main.GreetService.Greet", name);
}
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
/**
* GreetService is great
* @module
*/
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: Unused imp... | fim | wailsapp/wails | typescript |
<|fim_suffix|>reetservice.js";
export {
GreetService
};
<|fim_prefix|>// Cyn<|fim_middle|>hyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
import * as GreetService from "./g<|endoftext|> | fim | wailsapp/wails | typescript |
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
/**
* GreetService is great
* @module
*/
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: Unused imports
import { Call as $Call, CancellablePromise as $Cancellab... | fim | wailsapp/wails | typescript |
<|fim_suffix|>ice.js";
export {
GreetService
};
export type {
Person
} from "./models.js";
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
import * as GreetService f<|fim_middle|>rom "./greetserv<|endoftext|> | fim | wailsapp/wails | typescript |
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatical<|fim_suffix|>nt
// @ts-ignore: Unused imports
import * as services$0 from "./services/models.js";
/**
* Person is a person!
* They have a name and an address
*/
export interface Person {
"Name": string;
"Add... | fim | wailsapp/wails | typescript |
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
import * as OtherService from "./otherservice.js";
export {
OtherService
};
export type {
Address
} from<|fim_suffix|><|fim_middle|> "./models.js";
<|endoftext|> | fim | wailsapp/wails | typescript |
<|fim_prefix|>// Cynh<|fim_suffix|>ace Address {
"Street": string;
"State": string;
"Country": string;
}
<|fim_middle|>yrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
export interf<|endoftext|> | fim | wailsapp/wails | typescript |
<|fim_suffix|>ablePromise as $CancellablePromise } from "/wails/runtime.js";
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: Unused imports
import * as $models from "./models.js";
/**
* Yay does this and that
*/
export function Yay(): $CancellablePromise<$models.Address | null> {
re... | fim | wailsapp/wails | typescript |
<|fim_suffix|>ls.js";
<|fim_prefix|>// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
<|fim_middle|>
export type {
Time
} from "./mode<|endoftext|> | fim | wailsapp/wails | typescript |
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
/**
* A Time represents an instant in time with nanosecond precision.
*
* Programs using times should typically store and pass them as values,
* not pointers. That is, time variables and struct fields s... | fim | wailsapp/wails | typescript |
<|fim_suffix|>gets the latest prerelease on GitHub
func GetLatestPreRelease() (result *SemanticVersion, err error) {
tags, err := GetVersionTags()
if err != nil {
return nil, err
}
for _, tag := range tags {
if tag.IsPreRelease() {
return tag, nil
}
}
return nil, fmt.Errorf("no prerelease tag found")
}... | fim | wailsapp/wails | go |
package github
import (
"fmt"
"github.com/wailsapp/wails/v3/internal/semver"
)
const majorVersion = 3
// SemanticVersion is a struct containing a semantic version
type SemanticVersion struct {
Version *semver.Version
}
// NewSemanticVersion creates a new SemanticVersion object with the given version string
func... | fim | wailsapp/wails | go |
<|fim_prefix|>package github
import (
"github.com/matryer/is"
"testing"
)
func TestSemanticVersion_IsGreaterThan(t *testing.T) {
i<|fim_suffix|>.New(t)
alpha1, err := NewSemanticVersion("v3.0.0-alpha.1")
is2.NoErr(err)
beta1, err := NewSemanticVersion("v3.0.0-beta.1")
is2.NoErr(err)
v2, err := NewSemanticV... | fim | wailsapp/wails | go |
// Cross-platform.
// Common File Dialogs
package cfd
type Dialog interface {
// Show the dialog to the user.
// Blocks until the user has closed the dialog.
Show() error
// Sets the dialog's parent window. Use 0 to set the dialog to have no parent window.
SetParentWindowHandle(hwnd uintptr)
// Show the dialog ... | fim | wailsapp/wails | go |
<|fim_suffix|>il, unsupportedError
}
<|fim_prefix|>//go:build !windows
// +build !windows
package cfd
import "fmt"
var unsupportedError = fmt.Errorf("common file dialogs are only available on windows")
// TODO doc
func NewOpenFileDialog(config DialogConfig) (OpenFileDialog, error) {
return nil, unsupportedError
}
... | fim | wailsapp/wails | go |
<|fim_prefix|>//go:build windows
// +build windows
package cfd
import "github.com/go-ole/go-ole"
func initialize() {
// Swallow error
_ = ole.CoInitializeEx(0, ole.COINIT_APARTMENTTHREADED|ole.COINIT_DISABLE_OLE1DDE)
}
// TODO doc
func NewOpenFileDialog(config DialogConfig) (OpenFileDialog, error) {
initialize()... | fim | wailsapp/wails | go |
<|fim_prefix|>// Cross-platform.
package cfd
import (
"reflect"
"fmt"
"os"
)
type FileFilter struct {
// The display name of the filter (That is shown to the user)
DisplayName string
// The filter pattern. Eg. "*.txt;*.png" to select all txt and png files, "*.*" to select any files, etc.
Pattern string
}
// ... | fim | wailsapp/wails | go |
package cfd
import "errors"
var (
ErrorCancelled = errors.New("cancelled by user")
)
<|endoftext|> | fim | wailsapp/wails | go |
<|fim_suffix|>herwise they will be given the Dialog interface which does not expose this function.
func (fileOpenDialog *iFileOpenDialog) GetResults() ([]string, error) {
isMultiselect, err := fileOpenDialog.isMultiselect()
if err != nil {
return nil, err
}
if !isMultiselect {
// We should panic as this error i... | fim | wailsapp/wails | go |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.