/**
* asserts that an object has an id
*/exporttypeHasId<T> = T & {
id: number;
};
/**
* checks whether not an object that may have an id does have the id, at runtime
*/exportdeclareconsthasId: <T extends {
id?: undefined | number;
}>(obj: T) => obj is HasId<T>;