Skip to content

Commit

Permalink
feat: better types
Browse files Browse the repository at this point in the history
  • Loading branch information
sohamjaiswal committed Jun 28, 2023
1 parent 4dbe9cf commit 8fa978d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cardboard.js",
"version": "1.0.2",
"version": "1.0.3",
"description": "JS/TS Wrapper for the CardBoard API",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
22 changes: 11 additions & 11 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ export interface IGetToken {
export interface GuildedUser {
id: string
name: string
subdomain: string
aliases: Alias[]
avatar: string
banner: string
userStatus: UserStatus
subdomain?: string
aliases?: Alias[]
avatar?: string
banner?: string
userStatus?: UserStatus
moderationStatus: any
aboutInfo: AboutInfo
aboutInfo?: AboutInfo
userTransientStatus: any
}

Expand All @@ -34,9 +34,9 @@ export interface Alias {
}

export interface UserStatus {
content: Content
customReactionId: number
customReaction: CustomReaction
content?: Content
customReactionId?: number
customReaction?: CustomReaction
}

export interface Content {
Expand Down Expand Up @@ -82,6 +82,6 @@ export interface CustomReaction {
}

export interface AboutInfo {
bio: string
tagLine: string
bio?: string
tagLine?: string
}

0 comments on commit 8fa978d

Please sign in to comment.