https://github.com/chargebee/chargebee-js-types
https://github.com/chargebee/chargebee-js-types
high hosted-pages
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/chargebee/chargebee-js-types
- Owner: chargebee
- Created: 2022-12-05T13:36:37.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-04-16T07:01:06.000Z (6 months ago)
- Last Synced: 2025-06-16T06:47:24.411Z (4 months ago)
- Topics: high, hosted-pages
- Language: TypeScript
- Size: 29.3 KB
- Stars: 2
- Watchers: 18
- Forks: 7
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Chargebee.js Types
This package contains type definitions for [Chargebee JS browser SDK](https://js.chargebee.com/v2/chargebee.js). If your are looking for Chargebee.js components head to [framework wrappers](https://github.com/chargebee/chargebee-js-wrappers).
### Install
`npm install --save-dev @chargebee/chargebee-js-types`
### Setup Pre-commit Hooks
Install pre-commit framework in developer machine
```
brew install pre-commit
npm run precommit
```### Add Typing to window.Chargebee
To have the `Chargebee` object properly typed, add the following global type definition, such as in `global.d.ts`:
```typescript
import Chargebee from "@chargebee/chargebee-js-types"declare global {
var Chargebee: Chargebee
}
```## Support
Have any queries regarding the implementation? Reach out to [support@chargebee.com](mailto:support@chargebee.com)