npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@scayle/checkout-types

v2.1.73

Published

TypeScript definitions for SCAYLE Checkout

Readme

@scayle/checkout-types

Documentation | Website

The SCAYLE Checkout Types library offers comprehensive TypeScript type definitions for developing SCAYLE applications and components.

What is Scayle ?

SCAYLE is a full-featured e-commerce software solution that comes with flexible APIs. Within SCAYLE, you can manage all aspects of your shop, such as products, stocks, customers, and transactions.

Learn more about SCAYLE's architecture and commerce modules in the Docs.

Installation

npm i -S @scayle/checkout-types

Usage

All types

import * as types from '@scayle/checkout-types';

// Use the types in your application
const checkoutState: types.CheckoutState = {
  // ... your checkout state
};

Individual types

import { CheckoutState, PaymentMethod, AddressForm, DynamicField } from '@scayle/checkout-types';

// Use specific types
const checkoutState: CheckoutState = {
  // ... your checkout state
};

SDK & Authentication Types

import type {
  Scayle, // Main SDK type for window.scayle
  RefreshTokenHook, // Token refresh hook
  ExchangeAuthCodeHook, // Auth code exchange hook
  AuthEvents, // Authentication events
  DeviceType // Express checkout device type
} from '@scayle/checkout-types';

// Type the global window.scayle
declare global {
  interface Window {
    scayle: Scayle;
  }
}

// Implement custom auth hooks
const refreshTokenHook: RefreshTokenHook = async params => {
  // Your implementation
  return { accessToken: 'new-token' };
};

// Use SDK with full type safety
window.scayle.auth.V3.init({
  clientId: 123,
  hooks: { refreshTokenHook, exchangeAuthCodeHook }
});

// Listen to events
window.scayle.auth.V3.events.listen(AuthEvents.AUTH_SUCCESS, payload => {
  console.log('Authenticated:', payload.accessToken);
});

Available Types

This package provides comprehensive TypeScript definitions for:

Checkout & Configuration

  • Checkout: Checkout state, steps, and flow types
  • Payment: Payment methods, providers, and processing
  • Address: Address forms and validation
  • Basket: Shopping cart and basket management
  • Configuration: App configuration and settings
  • Validation: Form validation and field types
  • Dynamic Fields: Dynamic form field definitions

SDK Types (NEW)

  • Scayle SDK: Main SDK type for window.scayle
  • Authentication: Auth hooks, requests, responses, events, and error types
  • Express Checkout: Express SDK types and device types
  • Internal API: Internal endpoints and event types
  • Event System: Event bus and event listener types

Other channels

  • LinkedIn
  • Jobs
  • SCAYLE

License

Licensed under the MIT