stackexchange-api
Version:
A Node.js wrapper for the StackExchange API
37 lines (36 loc) • 1.34 kB
TypeScript
import { BadgeCount } from './BadgeCount';
import { TypeShallowUser } from '../interfaces/result-types/TypeShallowUser';
/**
* The equivalent of [Type shallow_user](https://api.stackexchange.com/docs/types/shallow-user).<br>
* This object represents a [[User]], but omits many of the fields found on the full [[User]] object.<br>
* This object is mostly analogous to the "user card" found on many pages (like the Question page) on a [Stack Exchange site](https://stackexchange.com/sites).
*/
export declare class ShallowUser {
/**
* *May be absent, in which case it is set to `null`*
*/
acceptRate: number | null;
badgeCounts: BadgeCount | null;
/**
* *May be absent, in which case it is set to `null`*
*/
displayName: string | null;
/**
* *May be absent, in which case it is set to `null`*
*/
link: string | null;
/**
* *May be absent, in which case it is set to `null`*
*/
profileImage: string | null;
/**
* *May be absent, in which case it is set to `null`*
*/
reputation: number | null;
/**
* *May be absent, in which case it is set to `null`*
*/
userId: number | null;
userType: 'unregistered' | 'registered' | 'moderator' | 'team_admin' | 'does_not_exist' | null;
constructor(shallow_user?: TypeShallowUser);
}