Skip to content

Commit

Permalink
avoid type issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaskikutis committed Oct 21, 2024
1 parent 7030b6f commit 910068e
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion scripts/extensions/ai-widget/src/superdesk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ import {ISuperdesk} from 'superdesk-api';

// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
export const superdesk = window['extensionsApiInstances']['ai-widget'] as ISuperdesk;
export const superdesk: ISuperdesk = window['extensionsApiInstances']['ai-widget'] as ISuperdesk;
2 changes: 1 addition & 1 deletion scripts/extensions/auto-tagging-widget/src/superdesk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ import {ISuperdesk} from 'superdesk-api';

// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
export const superdesk = window['extensionsApiInstances']['auto-tagging-widget'] as ISuperdesk;
export const superdesk: ISuperdesk = window['extensionsApiInstances']['auto-tagging-widget'] as ISuperdesk;
2 changes: 1 addition & 1 deletion scripts/extensions/booleanField/src/superdesk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ import {ISuperdesk} from 'superdesk-api';

// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
export const superdesk = window['extensionsApiInstances']['booleanField'] as ISuperdesk;
export const superdesk: ISuperdesk = window['extensionsApiInstances']['booleanField'] as ISuperdesk;
2 changes: 1 addition & 1 deletion scripts/extensions/broadcasting/src/superdesk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ import {ISuperdesk} from 'superdesk-api';

// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
export const superdesk = window['extensionsApiInstances']['broadcasting'] as ISuperdesk;
export const superdesk: ISuperdesk = window['extensionsApiInstances']['broadcasting'] as ISuperdesk;
2 changes: 1 addition & 1 deletion scripts/extensions/datetimeField/src/superdesk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ import {ISuperdesk} from 'superdesk-api';

// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
export const superdesk = window['extensionsApiInstances']['datetimeField'] as ISuperdesk;
export const superdesk: ISuperdesk = window['extensionsApiInstances']['datetimeField'] as ISuperdesk;
2 changes: 1 addition & 1 deletion scripts/extensions/helloWorld/src/superdesk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ import {ISuperdesk} from 'superdesk-api';

// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
export const superdesk = window['extensionsApiInstances']['helloWorld'] as ISuperdesk;
export const superdesk: ISuperdesk = window['extensionsApiInstances']['helloWorld'] as ISuperdesk;
2 changes: 1 addition & 1 deletion scripts/extensions/predefinedTextField/src/superdesk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ import {ISuperdesk} from 'superdesk-api';

// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
export const superdesk = window['extensionsApiInstances']['predefinedTextField'] as ISuperdesk;
export const superdesk: ISuperdesk = window['extensionsApiInstances']['predefinedTextField'] as ISuperdesk;

0 comments on commit 910068e

Please sign in to comment.