@types/react-credit-cards
TypeScript icon, indicating that this package has built-in type declarations

0.8.4 • Public • Published

Installation

npm install --save @types/react-credit-cards

Summary

This package contains type definitions for react-credit-cards (https://github.com/amarofashion/react-credit-cards).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-credit-cards.

index.d.ts

import * as React from "react";

export interface CallbackArgument {
    issuer: string;
    maxLength: number;
}

export type Focused = "name" | "number" | "expiry" | "cvc";

export interface ReactCreditCardProps {
    acceptedCards?: readonly string[] | undefined;
    callback?: ((type: CallbackArgument, isValid: boolean) => void) | undefined;
    cvc: string | number;
    expiry: string | number;
    focused?: Focused | undefined;
    issuer?: string | undefined;
    locale?: { valid: string } | undefined;
    name: string;
    number: string | number;
    placeholders?: { name: string } | undefined;
    preview?: boolean | undefined;
}

declare class ReactCreditCard extends React.Component<
    ReactCreditCardProps,
    never
> {}

export default ReactCreditCard;

Additional Details

  • Last updated: Mon, 20 Nov 2023 23:36:24 GMT
  • Dependencies: @types/react

Credits

These definitions were written by Vytautas Strimaitis, Ole Frank, and zzanol.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.7.00ts2.7
0.8.17,245ts3.6
0.8.17,245ts3.7
0.8.17,245ts3.8
0.8.17,245ts3.9
0.8.17,245ts4.0
0.8.17,245ts4.1
0.8.17,245ts4.2
0.8.17,245ts4.3
0.8.17,245ts4.4
0.8.45,326ts5.7
0.8.45,326ts5.6
0.8.45,326latest
0.8.45,326ts4.5
0.8.45,326ts4.6
0.8.45,326ts4.7
0.8.45,326ts4.8
0.8.45,326ts4.9
0.8.45,326ts5.0
0.8.45,326ts5.1
0.8.45,326ts5.2
0.8.45,326ts5.3
0.8.45,326ts5.4
0.8.45,326ts5.5
0.8.45,326ts5.8
0.8.0540ts2.8
0.8.0540ts2.9
0.8.0540ts3.0
0.8.0540ts3.1
0.8.0540ts3.2
0.8.0540ts3.3
0.8.0540ts3.4
0.8.0540ts3.5

Version History

VersionDownloads (Last 7 Days)Published
0.8.45,326
0.8.31
0.8.2859
0.8.17,245
0.8.0540
0.7.20
0.7.10
0.7.00

Package Sidebar

Install

npm i @types/react-credit-cards

Weekly Downloads

13,971

Version

0.8.4

License

MIT

Unpacked Size

4.65 kB

Total Files

5

Last publish

Collaborators

  • types