You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The type definitions for checkout line item is wrong :
in file: node_modules/@types/stripe/index.d.ts
interface ICheckoutLineItems {
/**
* Amount to be collected per unit of item
*/
amount: number;
/**
* Currency to collect payment in
*/
currency: string;
/**
* The name of the item
*/
name: string;
/**
* The amount of item being purchased
*/
quantity: number;
/**
* An optional description for the item
*/
description?: string;
/**
* A list of images for the item
*/
images?: string[];
}
but data returned by stripe.checkout.sessions.retrieve(sessionId) is:
@ddehghan Thanks for reporting! We don't have Typescript definitions for stripe-node today so you must be using a third-party library like DefinitelyTyped. You would need to work with them on a fix instead.
We're actively working on Typescript definitions this quarter though and are planning a beta soon! If you're interested, I'd recommend following the related issue here: #296
The type definitions for checkout line item is wrong :
in file: node_modules/@types/stripe/index.d.ts
but data returned by stripe.checkout.sessions.retrieve(sessionId) is:
The text was updated successfully, but these errors were encountered: