Skip to content

Commit 0c5c20a

Browse files
authored
Merge pull request #221 from lyra/feature/KJS-2166
feat: add formType to addForm and attachForm function descriptions
2 parents a95e1a0 + d4a3af2 commit 0c5c20a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

index.d.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ declare interface KR {
3434
/**
3535
* @summary Add a form.
3636
*/
37-
addForm: (formSelector: string) => Promise<{ KR: KR, result: {formId: string} }>;
37+
addForm: (formSelector: string, formType?: FormType) => Promise<{ KR: KR, result: {formId: string} }>;
3838
/**
3939
* @summary Attach a form to the given selector.
4040
*/
41-
attachForm: (formSelector: string) => Promise<{ KR: KR, result: {formId: string} }>;
41+
attachForm: (formSelector: string, formType?: FormType) => Promise<{ KR: KR, result: {formId: string} }>;
4242
/**
4343
* @summary Show form.
4444
*/
@@ -431,4 +431,9 @@ declare interface KRPaymentIPNResponse {
431431
* @summary Answer data.
432432
*/
433433
'kr-answer': string;
434+
}
435+
436+
declare enum FormType {
437+
Cards = "cards",
438+
All = "all"
434439
}

0 commit comments

Comments
 (0)