0.8.4 • Published 1 year ago

@types/react-credit-cards v0.8.4

Weekly downloads
2,361
License
MIT
Repository
github
Last release
1 year ago

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

// Type definitions for react-credit-cards 0.8
// Project: https://github.com/amarofashion/react-credit-cards
// Definitions by: Vytautas Strimaitis <https://github.com/vstrimaitis>, Ole Frank <https://github.com/olefrank>, zzanol <https://github.com/zzanol>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8

import * as React from "react";

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

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

export interface ReactCreditCardProps {
    acceptedCards?: ReadonlyArray<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: Thu, 08 Jul 2021 20:20:33 GMT
  • Dependencies: @types/react
  • Global values: none

Credits

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

0.8.4

1 year ago

0.8.3

1 year ago

0.8.2

1 year ago

0.8.1

3 years ago

0.8.0

6 years ago

0.7.2

6 years ago

0.7.1

6 years ago

0.7.0

7 years ago