fix: delete method

This commit is contained in:
2025-02-20 18:30:24 +07:00
parent e2a0ef628f
commit e108c922d7
6 changed files with 24 additions and 25 deletions

View File

@@ -27,13 +27,9 @@ export function Create(item: $models.Author): Promise<$models.Author> & { cancel
return $typingPromise;
}
export function Delete(item: $models.Author): Promise<$models.Author> & { cancel(): void } {
let $resultPromise = $Call.ByID(2096845974, item) as any;
let $typingPromise = $resultPromise.then(($result) => {
return $$createType0($result);
}) as any;
$typingPromise.cancel = $resultPromise.cancel.bind($resultPromise);
return $typingPromise;
export function Delete(id: number): Promise<void> & { cancel(): void } {
let $resultPromise = $Call.ByID(2096845974, id) as any;
return $resultPromise;
}
export function GetAll(): Promise<($models.Author | null)[]> & { cancel(): void } {