mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 21:31:12 +08:00
Merge pull request #21736 from benstevens48/update-stripe-v3
add element.destroy to stripe-v3
This commit is contained in:
1
types/stripe-v3/index.d.ts
vendored
1
types/stripe-v3/index.d.ts
vendored
@@ -185,6 +185,7 @@ declare namespace stripe {
|
||||
blur(): void;
|
||||
clear(): void;
|
||||
unmount(): void;
|
||||
destroy(): void;
|
||||
update(options: ElementsOptions): void;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,6 +42,7 @@ describe("Stripe", () => {
|
||||
(error: stripe.Error) => {
|
||||
console.error(error);
|
||||
});
|
||||
card.destroy();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user