New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@quesk/types

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@quesk/types

Implement all types necessary with this package

  • 0.3.1
  • unpublished
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

@quesk/types

With this package, you are installing the types needed for the correct typing of the Quesk models (from GraphQL).

Installation & Usage

Since this is a public package, you can install the package in your project using yarn or npm. Use one of the following two command to install the package:

$ yarn add @quesk/types
$ npm install --save @quesk/types

When you want to use the package, it's important to know, that there is no default export in this package. We are only exporting the variables/constants/types/interfaces that are shown below this paragraph.

To use the package, please use the following import lines:

import { Category } from '@quesk/types'

type Root = Category & { isAnotherType: boolean }

Introspection

You can see the introspection of the queries we are supporting on http://emily.quesk.io/graphiql.

Types

Category

Representing a Category object from GraphQL.

NameType
namestring
questionCountnumber
followedByUserboolean

User

Representing a User object from GraphQL.

NameType
firstNamestring
lastNamestring
namestring
locationstring
tagLinestring
websitestring
biographystring
avatarUrlstring
isCurrentUserboolean
isVerifiedboolean
isFollowedByCurrentUserboolean
interestedInArray of type Category
savedQuestionsArray of type Question
askedQuestionsArray of type Question
answersArray of type Answer
receivedUpvotesCountnumber
followerCountnumber
answersCountnumber

Answer

Representing a Answer object from GraphQL.

NameType
bodystring
authorSingle entity of type User`
createdAtISO Date String
updatedAtISO Date String
voteCountnumber
userIsAuthorboolean
upvotedByCurrentUserboolean
downvotedByCurrentUserboolean
question?Single entity of type Question

Question

Representing a Question object from GraphQL.

NameType
titlestring
bodystring
impressionCountnumber
categorySingle entity of type Category
categoryIdstring
hasTopAnswerboolean
isAnonymousboolean
topAnswerSingle entity of type Answer
answersArray of type Answer
authorSingle entity of type User
userHasSavedboolean
userIsAuthorboolean
createdAtISO Date String
updatedAtISO Date String

Keywords

FAQs

Package last updated on 08 Nov 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc