1.0.1-35 • Published 4 years ago

@tripzapp/shared-typings v1.0.1-35

Weekly downloads
212
License
ISC
Repository
-
Last release
4 years ago

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-dev

Usage

// 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

MIT

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

4 years ago

1.0.1-26

4 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

4 years ago

1.0.1-24

4 years ago

1.0.1-23

4 years ago

1.0.1-22

4 years ago

1.0.1-21

4 years ago

1.0.1-20

4 years ago

1.0.1-19

4 years ago

1.0.1-18

4 years ago

1.0.1-17

4 years ago

1.0.1-16

4 years ago

1.0.1-15

4 years ago

1.0.1-14

4 years ago

1.0.1-13

4 years ago

1.0.1-12

4 years ago

1.0.1-11

4 years ago

1.0.1-10

4 years ago

1.0.1-8

4 years ago

1.0.1-9

4 years ago

1.0.1-7

4 years ago

1.0.1-6

4 years ago

1.0.1-5

4 years ago

1.0.1-4

4 years ago

1.0.1-3

4 years ago

1.0.1-2

4 years ago

1.0.1-1

4 years ago

1.0.1-0

4 years ago