1.1.37 • Published 3 years ago

@jacob-schroder/api-types v1.1.37

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

API Types package for YOUANDX 3.0 Microservices.

Consuming the types as a client

To use these types in API consumer clients, first install the package using npm i -D @jacob-schroder/api-types. If the package is already installed and needs updating, use npm update.

From here, you can use any type directly, eg. import { IAddSpeakerArgs, ICreateRes } from '@jacob-schroder/api-types';.

Adding and updating to types

To add new types, please use a corresponding type declaration file within the /types directory.

Eg. for types on the "product" entity, please use /types/product.

If you create a new entity type file, please make sure to re-export it in the api.ts file in the root directory.

! Notice the /types/shared directory, meant for types shared across multiple entities.

Pushing / publishing new work

! Before pushing to NPM, please make sure you are logged into NPM on an owner account. Use npm login to do so. If you require access, contact the package owner (Mark).

Modifications can be published by running npm run push. This command does three thing;

  • It compiles the project using tsc.
  • It increments the version number in the package.json by 0.1.
  • It publishes the package itself to npm.
1.1.37

3 years ago

1.1.36

3 years ago

1.1.34

3 years ago

1.1.33

3 years ago

1.1.32

3 years ago

1.1.31

3 years ago

1.1.35

3 years ago

1.1.29

3 years ago

1.1.28

3 years ago

1.1.30

3 years ago

1.1.26

3 years ago

1.1.25

3 years ago

1.1.23

3 years ago

1.1.19

3 years ago

1.1.22

3 years ago

1.1.21

3 years ago

1.1.20

3 years ago

1.1.17

3 years ago

1.1.18

3 years ago

1.1.16

3 years ago

1.1.15

3 years ago

1.1.14

3 years ago

1.1.10

3 years ago

1.1.13

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago