mirror of
https://github.com/apricote/ein-pfeil-am-rechten-fleck.de.git
synced 2026-02-08 02:37:01 +00:00
WIP2
This commit is contained in:
parent
59a17fc303
commit
efb8af0e47
9 changed files with 72 additions and 13 deletions
9
src/global.d.ts
vendored
9
src/global.d.ts
vendored
|
|
@ -7,5 +7,12 @@ declare namespace paypal {
|
|||
render(selector: string): void;
|
||||
}
|
||||
|
||||
function Buttons(options: { createOrder: (data: unknown, actions: unknown) => unknown }): Button;
|
||||
interface ButtonOptions {
|
||||
createOrder: (data: unknown, actions: unknown) => unknown;
|
||||
onApprove: (data: unknown, actions: unknown) => unknown;
|
||||
onCancel: (data: unknown) => unknown;
|
||||
onError: (data: unknown) => unknown;
|
||||
}
|
||||
|
||||
function Buttons(options: ButtonOptions): Button;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue