Skip to content

Commit

Permalink
Updated ts to ignore errors (#485)
Browse files Browse the repository at this point in the history
* Updated ts to ignore errors

* Update autocompleteComponent.ts

* Update app.tsx
  • Loading branch information
droberts-ctrlo authored Nov 25, 2024
1 parent c54696c commit 8e79cba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/frontend/components/dashboard/lib/react/api.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export default class ApiClient {
constructor(baseUrl = "") {
this.baseUrl = baseUrl;
this.headers = {};
// @ts-expect-error "isDev is not valid"
this.isDev = window.siteConfig && window.siteConfig.isDev
}

Expand Down
1 change: 1 addition & 0 deletions src/frontend/components/dashboard/lib/react/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { sidebarObservable } from '../../../sidebar/lib/sidebarObservable';
declare global {
interface Window {
Linkspace : any,
// @ts-expect-error "Typings clash with JSTree"
siteConfig: any
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class AutocompleteComponent {
}

getURL(): string {
//@ts-expect-error "Testing code used by Digitpaint."
const devEndpoint = window.siteConfig?.urls?.autocompleteApi;
const layoutIdentifier = $('body').data('layout-identifier');

Expand Down

0 comments on commit 8e79cba

Please sign in to comment.