Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

Commit

Permalink
Merge pull request #37 from takanakahiko/add-TrimmedUser
Browse files Browse the repository at this point in the history
Add trimmed User
  • Loading branch information
abraham committed Jul 12, 2019
2 parents d0c4a1e + 1036378 commit b331ca7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion types/user.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Status } from './status';
import { UserEntities } from './user_entities';

export interface User {
export interface FullUser {
contributors_enabled: boolean;
created_at: string;
default_profile_image: boolean;
Expand Down Expand Up @@ -48,3 +48,10 @@ export interface User {
verified: boolean;
withheld_in_countries?: string[] | null;
}

export interface TrimmedUser {
id_str: string;
id: number;
}

export type User = TrimmedUser | FullUser

0 comments on commit b331ca7

Please sign in to comment.