1.0.1-35 • Published 4 years ago
@tripzapp/shared-typings v1.0.1-35
TripZapp Typings
This repository holds shared type declarations used across TripZapp typescript codebase.
Installation
Use the npm package manager to install.
npm install @tripzapp/shared-typings --save-devUsage
// partner.ts - example mutation file
import { User } from "@tripzapp/shared-typings";
export default async (
  _: User.BaseUser,
  args: void,
  { prisma }: GraphQLContext,
  info: any
) => {
  try {
    if (_.userType === User.Type.Partner)
      return await prisma.partnerDetails.findOne({
        where: { id: _.id },
      });
  } catch (err) {
    throw err;
  }
};Contributing
Before pushing any updates to this repo, if you haven't already, add your name and email in the index.ts.
Please make sure to update tests as appropriate.
License
1.0.1-35
4 years ago
1.0.1-29
4 years ago
1.0.1-28
4 years ago
1.0.1-27
5 years ago
1.0.1-26
5 years ago
1.0.1-34
4 years ago
1.0.1-33
4 years ago
1.0.1-32
4 years ago
1.0.1-31
4 years ago
1.0.1-30
4 years ago
1.0.1-25
5 years ago
1.0.1-24
5 years ago
1.0.1-23
5 years ago
1.0.1-22
5 years ago
1.0.1-21
5 years ago
1.0.1-20
5 years ago
1.0.1-19
5 years ago
1.0.1-18
5 years ago
1.0.1-17
5 years ago
1.0.1-16
5 years ago
1.0.1-15
5 years ago
1.0.1-14
5 years ago
1.0.1-13
5 years ago
1.0.1-12
5 years ago
1.0.1-11
5 years ago
1.0.1-10
5 years ago
1.0.1-8
5 years ago
1.0.1-9
5 years ago
1.0.1-7
5 years ago
1.0.1-6
5 years ago
1.0.1-5
5 years ago
1.0.1-4
5 years ago
1.0.1-3
5 years ago
1.0.1-2
5 years ago
1.0.1-1
5 years ago
1.0.1-0
5 years ago