0.0.10 • Published 1 year ago

@nosto/types v0.0.10

Weekly downloads
5
License
ISC
Repository
github
Last release
1 year ago

types

Summary

This repository contains matching type definitions used by the Nosto client script. All the files generated are contained inside a single typescript file types.ts. Each class or interface definitions can be imported into any js files defined inside javascript module and then used as a part of JSDoc definition of JavaScript APIs and methods.

Usage

In order to use types defined in this repository, please follow the steps below, 1. Include the following file inside package.json, under dependencies section, of any Javascript module

> `"@nosto/types": "VERSION"` <br/>_(Replace VERSION with the latest version of `types` plugin)_ <br/>
> For e.g. `"@nosto/types": "9.0.0"`
  1. Importing nosto types into any JavaScript files which has @nosto/types added into package.json

    import { ANY_CLASS_OR_INTERFACE } from "@nosto/types" (Replace ANY_CLASS_OR_INTERFACE with an actual class or interface defined in types.ts) For e.g. import { PushedProduct} from "@nosto/types"

  2. Using the imported class or interface in a JSDoc of a method

    /** * @return {PushedProduct[]} */ export default function findProducts() { return [] }

0.0.10

1 year ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago