mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-02 04:39:54 -05:00
updated openapi generator
This commit is contained in:
@@ -37,13 +37,13 @@ export interface PaginatedUnitConversionList {
|
||||
* @type {string}
|
||||
* @memberof PaginatedUnitConversionList
|
||||
*/
|
||||
next?: string;
|
||||
next?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PaginatedUnitConversionList
|
||||
*/
|
||||
previous?: string;
|
||||
previous?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Array<UnitConversion>}
|
||||
@@ -55,9 +55,9 @@ export interface PaginatedUnitConversionList {
|
||||
/**
|
||||
* Check if a given object implements the PaginatedUnitConversionList interface.
|
||||
*/
|
||||
export function instanceOfPaginatedUnitConversionList(value: object): boolean {
|
||||
if (!('count' in value)) return false;
|
||||
if (!('results' in value)) return false;
|
||||
export function instanceOfPaginatedUnitConversionList(value: object): value is PaginatedUnitConversionList {
|
||||
if (!('count' in value) || value['count'] === undefined) return false;
|
||||
if (!('results' in value) || value['results'] === undefined) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user