diff --git a/package.json b/package.json
index ef6e67f3..6f05e02f 100644
--- a/package.json
+++ b/package.json
@@ -28,7 +28,7 @@
"./CHANGELOG.md"
],
"scripts": {
- "build": "npm run build:clean && npm run generate && vite build",
+ "build": "npm run build:clean && npm run generate && npm run tsc && vite build",
"build:clean": "rm -rf ./dist && mkdir ./dist",
"commitlint": "commitlint --edit",
"dev": "node ./build/prompt.js && npm run build && vite build --watch",
diff --git a/src/components/Common/TaxInputs/TaxInputs.tsx b/src/components/Common/TaxInputs/TaxInputs.tsx
index 7209eeef..b540705b 100644
--- a/src/components/Common/TaxInputs/TaxInputs.tsx
+++ b/src/components/Common/TaxInputs/TaxInputs.tsx
@@ -38,6 +38,7 @@ export function SelectInput({ question, requirement, control }: EmpQ | CompR) {
diff --git a/src/components/Company/DocumentSigner/DocumentList/Head.tsx b/src/components/Company/DocumentSigner/DocumentList/Head.tsx
index bb0b1f42..b04c736e 100644
--- a/src/components/Company/DocumentSigner/DocumentList/Head.tsx
+++ b/src/components/Company/DocumentSigner/DocumentList/Head.tsx
@@ -1,6 +1,7 @@
import { useTranslation } from 'react-i18next'
export function Head() {
+ // @ts-expect-error HACK missing translations
const { t } = useTranslation('Company.DocumentSigner')
return
{t('documentListTitle')}
diff --git a/src/components/Company/DocumentSigner/DocumentList/List.tsx b/src/components/Company/DocumentSigner/DocumentList/List.tsx
index a31d79e0..917e1ce0 100644
--- a/src/components/Company/DocumentSigner/DocumentList/List.tsx
+++ b/src/components/Company/DocumentSigner/DocumentList/List.tsx
@@ -5,6 +5,7 @@ import { useDocumentList } from './DocumentList'
function List() {
const { companyForms, handleRequestFormToSign, documentListError, isSelfSignatory } =
useDocumentList()
+ // @ts-expect-error HACK missing translations
const { t } = useTranslation('Company.DocumentSigner')
const onRequestSign = (requestedForm: FormData) => {
diff --git a/src/components/Company/DocumentSigner/DocumentList/ManageSignatories.tsx b/src/components/Company/DocumentSigner/DocumentList/ManageSignatories.tsx
index 31e7248c..c1a6ee80 100644
--- a/src/components/Company/DocumentSigner/DocumentList/ManageSignatories.tsx
+++ b/src/components/Company/DocumentSigner/DocumentList/ManageSignatories.tsx
@@ -13,6 +13,7 @@ function isValidSignatoryTitle(
}
function ManageSignatories() {
+ // @ts-expect-error HACK missing translations
const { t } = useTranslation('Company.DocumentSigner')
const { isSelfSignatory, signatory, handleChangeSignatory } = useDocumentList()
diff --git a/src/components/Employee/EmployeeList/EmployeeList.test.tsx b/src/components/Employee/EmployeeList/EmployeeList.test.tsx
index 2563f987..c36bc2c8 100644
--- a/src/components/Employee/EmployeeList/EmployeeList.test.tsx
+++ b/src/components/Employee/EmployeeList/EmployeeList.test.tsx
@@ -7,7 +7,9 @@ import { handleGetCompanyEmployees } from '@/test/mocks/apis/employees'
import { HttpResponse } from 'msw'
import { mockResizeObserver } from 'jsdom-testing-mocks'
-const resizeObserver = mockResizeObserver()
+beforeEach(() => {
+ mockResizeObserver()
+})
describe('EmployeeList', () => {
beforeEach(() => {
diff --git a/src/components/Employee/EmployeeList/EmployeeList.tsx b/src/components/Employee/EmployeeList/EmployeeList.tsx
index e70c87c1..07607705 100644
--- a/src/components/Employee/EmployeeList/EmployeeList.tsx
+++ b/src/components/Employee/EmployeeList/EmployeeList.tsx
@@ -139,6 +139,7 @@ function Root({ companyId, className, children }: EmployeeListProps) {
handleNew,
handleReview,
handleDelete,
+ // @ts-expect-error HACK fix employee typing inconsistency
employees,
currentPage,
totalPages,
diff --git a/src/components/Employee/EmployeeList/List.tsx b/src/components/Employee/EmployeeList/List.tsx
index eac0c490..f9501496 100644
--- a/src/components/Employee/EmployeeList/List.tsx
+++ b/src/components/Employee/EmployeeList/List.tsx
@@ -37,7 +37,7 @@ export const List = () => {
} = useEmployeeList()
const { t } = useTranslation('Employee.EmployeeList')
- const [deleting, setDeleting] = useState>(new Set())
+ const [_, setDeleting] = useState>(new Set())
const { ...dataViewProps } = useDataView({
data: employees,
columns: [
diff --git a/src/components/Employee/Profile/Actions.tsx b/src/components/Employee/Profile/Actions.tsx
index bfb485b2..b4a69b33 100644
--- a/src/components/Employee/Profile/Actions.tsx
+++ b/src/components/Employee/Profile/Actions.tsx
@@ -1,5 +1,5 @@
import { useTranslation } from 'react-i18next'
-import { ActionsLayout, Button, Flex } from '@/components/Common'
+import { ActionsLayout, Button } from '@/components/Common'
import { useProfile } from '@/components/Employee/Profile/Profile'
export const Actions = () => {
diff --git a/src/components/Employee/Profile/Profile.tsx b/src/components/Employee/Profile/Profile.tsx
index 38430963..d9a204d2 100644
--- a/src/components/Employee/Profile/Profile.tsx
+++ b/src/components/Employee/Profile/Profile.tsx
@@ -294,6 +294,7 @@ const Root = ({ isAdmin = false, ...props }: ProfileProps) => {
const workAddressData = await mutateEmployeeWorkAddress({
work_address_uuid: mergedData.current.workAddress.uuid,
body: {
+ // @ts-expect-error HACK fix disagreement between args and API expectation
version: mergedData.current.workAddress.version,
location_uuid: work_address,
},
diff --git a/src/components/Flow/StateMachines/employeeSelfOnboarding.ts b/src/components/Flow/StateMachines/employeeSelfOnboarding.ts
index d6ac6626..2ea3b806 100644
--- a/src/components/Flow/StateMachines/employeeSelfOnboarding.ts
+++ b/src/components/Flow/StateMachines/employeeSelfOnboarding.ts
@@ -1,6 +1,5 @@
import { transition, reduce, state } from 'robot3'
import { componentEvents } from '@/shared/constants'
-import type { EmployeeSelfOnboardingContextInterface } from '@/components/Flow/EmployeeSelfOnboardingFlow'
import {
Profile,
Taxes,
@@ -9,6 +8,7 @@ import {
OnboardingSummary,
} from '@/components/Flow/EmployeeSelfOnboardingFlow/EmployeeSelfOnboardingComponents'
import { SDKI18next } from '@/contexts'
+import { EmployeeSelfOnboardingContextInterface } from '@/components/Flow/EmployeeSelfOnboardingFlow/EmployeeSelfOnboardingFlow'
export const employeeSelfOnboardingMachine = {
index: state(
diff --git a/src/contexts/ThemeProvider/ThemeProvider.tsx b/src/contexts/ThemeProvider/ThemeProvider.tsx
index e8d766ee..c9f496b2 100644
--- a/src/contexts/ThemeProvider/ThemeProvider.tsx
+++ b/src/contexts/ThemeProvider/ThemeProvider.tsx
@@ -45,6 +45,7 @@ export const ThemeProvider: React.FC = ({
}, [partnerTheme, t])
return (
+ // @ts-expect-error HACK fix mismatch where containerRef allows null
{children}
diff --git a/src/test/mocks/apis/homeAddresses.ts b/src/test/mocks/apis/homeAddresses.ts
index 517c9a32..df90defa 100644
--- a/src/test/mocks/apis/homeAddresses.ts
+++ b/src/test/mocks/apis/homeAddresses.ts
@@ -49,6 +49,7 @@ const getEmployeeHomeAddresses = http.get<
const createEmployeeHomeAddress = http.post<
PathParams<'post-v1-employees-employee_id-home_addresses'>,
RequestBodyParams<'post-v1-employees-employee_id-home_addresses'>,
+ // @ts-expect-error HACK re-check after Speakeasy implementation
ResponseType<'post-v1-employees-employee_id-home_addresses', 200>
>(`${API_BASE_URL}/v1/employees/:employee_id/home_addresses`, async ({ request }) => {
const requestBody = await request.json()
diff --git a/src/test/mocks/apis/typeHelpers.ts b/src/test/mocks/apis/typeHelpers.ts
index 9ffdee33..a2cb6207 100644
--- a/src/test/mocks/apis/typeHelpers.ts
+++ b/src/test/mocks/apis/typeHelpers.ts
@@ -3,6 +3,7 @@ import { operations } from '@/types/schema'
// Type Helpers
export type PathParams =
operations[Operation]['parameters']['path']
+// @ts-expect-error HACK revisit after Speakeasy implementation
export type RequestBodyParams = NonNullable<
operations[Operation]['requestBody']
>['content']['application/json']
diff --git a/src/test/mocks/fixtures/company_location.ts b/src/test/mocks/fixtures/company_location.ts
index 36de5f2a..caf9fa61 100644
--- a/src/test/mocks/fixtures/company_location.ts
+++ b/src/test/mocks/fixtures/company_location.ts
@@ -7,6 +7,7 @@ export const COMPANY_LOCATION_FORM_PAYLOAD = {
city: 'Anytown',
state: 'ABC',
zip: '12345',
+ // @ts-expect-error HACK fix `country` typings
country: 'USA',
mailing_address: true,
filing_address: false,
diff --git a/tsconfig.json b/tsconfig.json
index 1211beca..742f42ed 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -12,7 +12,7 @@
"module": "ESNext",
"moduleDetection": "force",
"allowJs": true,
- "noEmit": false,
+ "noEmit": true,
"jsx": "react-jsx",
"moduleResolution": "bundler",
"resolveJsonModule": true,