#AustinDidierTran-typescript-types

1 messages · Page 1 of 1 (latest)

swift grove
#

If you're talking about a Stripe SDK, can you link the regference?

zealous robin
swift grove
#

And when you say "documentation of all the types that are available in typescript", can you elaborate? Do you mean the types of the return/input values?

zealous robin
#

Yes. For example, when I run this line: await stripe.reporting.reportTypes.retrieve(type)., it would be nice to use typesript to make sure the provided argument is allowed through an enum.

#

I know there is some types as I am using some that I've found in some code examples online, but I couldn;t find the documentation

swift grove
#

Are you looking for something beyond the types mentioned in the docs you linked?

#

Return value types are specified at the end of most sections as well

zealous robin
#

Yes I want beyond that

#

I'll find you an example

#

import * as Stripe from 'stripe';

export const stripe = new Stripe('whateverkey');

function createHeader(): Stripe.HeaderOptions { // use stripe types for return type
return 'stripe header';
}

#

Stripe.HeaderOptions is the kind of types that I'm looking for

swift grove
#

Ahhh okay. Let me check with a colleague

#

And you just want a master list of all the types?

#

Or rather, docs with a masterlist of all the types?

#

Unfortunately there are no docs that go into further detail