diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bd76024..dadfdd5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,9 @@ name: ci -on: [push] +on: + push: + branches: + - master + pull_request: jobs: test: diff --git a/src/Datatrans.ts b/src/Datatrans.ts index f484118..ab60c93 100644 --- a/src/Datatrans.ts +++ b/src/Datatrans.ts @@ -22,7 +22,7 @@ export interface GlobalDatatransApi { */ export interface DatatransLightboxConfig { closed?: () => void; - error?: (error: { message: string; detail: string }) => void; + error?: (error: { message: string; detail: string }) => void; // eslint-disable-line no-unused-vars form?: unknown; loaded?: () => void; opened?: () => void; diff --git a/src/Lightbox.tsx b/src/Lightbox.tsx index ec2c9a0..3916e2b 100644 --- a/src/Lightbox.tsx +++ b/src/Lightbox.tsx @@ -12,7 +12,7 @@ export interface LightboxProps { onLoaded?: () => void onOpened?: () => void onCancelled?: () => void - onError?: (error: { message: string; detail: string }) => void + onError?: (error: { message: string; detail: string }) => void // eslint-disable-line no-unused-vars } declare let window: Window & {