Skip to content

Types for using Zilpay in typescript apps

Notifications You must be signed in to change notification settings

its-saeed/zilpay-types

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 

Repository files navigation

Zilpay Types

npm npm npm

These are the types for the Zilpay wallet and libraries. We created this package as we use a typescript react app and it is much easier to have types to work with.


Installation

Symply run the following:

yarn add @nft-game-co/zilpay-types

or

npm install @nft-game-co/zilpay-types

Usage

To use the extension you can extend the window object with the type.

import { ZilPay } from '@nft-game-co/zilpay-types'


declare global {
    interface Window {
        zilPay: ZilPay;
    }
}

You can then use the types freely when coding:

const isConnect = await window.zilPay.wallet.connect();

Author

Burlet Mederic

mederic@nftgameco.com

About

Types for using Zilpay in typescript apps

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published