mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-07 15:18:20 -05:00
updated openapi generator
This commit is contained in:
@@ -70,8 +70,8 @@ export interface Group {
|
||||
/**
|
||||
* Check if a given object implements the Group interface.
|
||||
*/
|
||||
export function instanceOfGroup(value: object): boolean {
|
||||
if (!('name' in value)) return false;
|
||||
export function instanceOfGroup(value: object): value is Group {
|
||||
if (!('name' in value) || value['name'] === undefined) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user