2.0.0 • Published 5 months ago

@yuno-payments/sdk-web-types v2.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
5 months ago

Using Yuno SDK Types

This package provides TypeScript types for integrating the Yuno SDK into your application. You can use the types in two ways: importing them explicitly or using them globally.

1. Including Types in tsconfig.json

To make the types available globally across your project, include them in your tsconfig.json file:

{
  "compilerOptions": {
    "types": ["@yuno-payments/sdk-web-types/dist/global"]
  }
}

2. How to Use Types in Your Code

a) Importing Specific Types

If you prefer to import specific types explicitly, you can do so like this:

import { YunoInstance } from '@yuno-payments/sdk-web-types'

const yunoInstance: YunoInstance = Yuno.initialize('publicApiKey')

3. What Does the tsconfig.json Configuration Do?

By including "types": ["@yuno-payments/sdk-web-types/dist/global"] in your tsconfig.json, you ensure that global types (like Yuno) are available across your project without the need to import them explicitly.

🚀 Summary

  • To use explicit types, import the specific types you need from @yuno-payments/sdk-web-types.
  • To use Yuno globally, include the configuration in tsconfig.json to make Yuno available throughout your project without importing it.

With this setup, your Yuno SDK integration will be smooth, and TypeScript's type checking and autocompletion will help you ensure correctness in your code.

2.0.0

5 months ago

1.23.0

5 months ago

1.22.2-beta.7

5 months ago

2.0.0-beta.1

5 months ago

1.22.2-beta.6

5 months ago

1.22.2-beta.3

5 months ago

1.22.2-beta.2

5 months ago

1.22.2-beta.5

5 months ago

1.22.2-beta.4

5 months ago

1.22.2-beta.1

5 months ago

1.22.1-beta

6 months ago

1.22.0

7 months ago

1.22.0-beta.1

7 months ago

1.21.0

8 months ago

1.20.0

9 months ago

1.20.0-beta.1

9 months ago

1.19.0

9 months ago

1.19.0-beta.3

9 months ago

1.19.0-beta.1

9 months ago

1.18.0

9 months ago

1.17.0

10 months ago

1.16.0

10 months ago

1.15.0

10 months ago

1.14.1

10 months ago

1.14.0

10 months ago

1.13.1

10 months ago

1.14.3

10 months ago

1.14.2

10 months ago

1.16.0-beta.5

10 months ago

1.16.0-beta.3

10 months ago

1.16.0-beta.4

10 months ago

1.16.0-beta.1

10 months ago

1.16.0-beta.2

10 months ago

1.13.0

11 months ago

1.12.0

11 months ago

1.9.0

11 months ago

1.8.0

11 months ago

1.9.0-beta.2

11 months ago

1.9.0-beta.1

11 months ago

1.11.0

11 months ago

1.10.0

11 months ago

1.7.0

12 months ago

1.6.0

12 months ago

1.5.0

1 year ago

1.4.0

1 year ago

1.2.0

1 year ago

1.3.0

1 year ago

1.1.0

1 year ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago