// @ts-check // 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, Create as $Create} from "@wailsio/runtime"; // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore: Unused imports import * as $models from "./models.js"; /** * @param {string} text * @returns {Promise<$models.CustomerRes> & { cancel(): void }} */ export function Customer(text) { let $resultPromise = /** @type {any} */($Call.ByID(95760012, text)); let $typingPromise = /** @type {any} */($resultPromise.then(($result) => { return $$createType0($result); })); $typingPromise.cancel = $resultPromise.cancel.bind($resultPromise); return $typingPromise; } /** * @param {string} name * @returns {Promise & { cancel(): void }} */ export function Greet(name) { let $resultPromise = /** @type {any} */($Call.ByID(1411160069, name)); return $resultPromise; } // Private type creation functions const $$createType0 = $models.CustomerRes.createFrom;