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
Describe the bug
TS compiler errors. Please note in our platform we are using TS as FE scripting language.
As per document we have setup everything and all working fine when we use //ts-ignore before these two lines.
Describe the bug
TS compiler errors. Please note in our platform we are using TS as FE scripting language.
As per document we have setup everything and all working fine when we use //ts-ignore before these two lines.
get stripeConfig() {
// @ts-ignore
const config = this.$stripe
return config
}
async submit() {
// @ts-ignore
await this.$refs.paymentRef.submit()
}
To Reproduce
Steps to reproduce the behavior:
1.please implement above two functions in your TS project and remove //ts-ignore
Solution is defined here, you need to change index.d.ts file as per below. (default key word is missing)
https://stackoverflow.com/questions/45555089/resolve-property-does-not-exist-on-type-vue-error
current implementation
export class StripeElementPayment extends Vue {
pk: string;
elementsOptions: any;
confirmParams: any;
createOptions: any;
redirect?: string;
stripeAccount?: string;
apiVersion?: string;
locale?: string;
disableAdvancedFraudDetection?: boolean;
}
requesting implementation
export default class StripeElementPayment extends Vue {
pk: string;
elementsOptions: any;
confirmParams: any;
createOptions: any;
redirect?: string;
stripeAccount?: string;
apiVersion?: string;
locale?: string;
disableAdvancedFraudDetection?: boolean;
}
for all classes in index.d.ts
As I mentioned above as long as I ignore the compiler errors it complely works fine.
Just in case if you wonder I have not imported stripe.
not sure why this.$stripe throws an error could you please look into this as well.
Expected behavior
TS shouldn't throw any errors.
Screenshots
If applicable, attached above
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: