diff --git a/Common/Server/Infrastructure/Postgres/SchemaMigrations/1768682071562-MigrationName.ts b/Common/Server/Infrastructure/Postgres/SchemaMigrations/1768682071562-MigrationName.ts index d1f75b74ea..ab9a7ffb07 100644 --- a/Common/Server/Infrastructure/Postgres/SchemaMigrations/1768682071562-MigrationName.ts +++ b/Common/Server/Infrastructure/Postgres/SchemaMigrations/1768682071562-MigrationName.ts @@ -1,7 +1,7 @@ import { MigrationInterface, QueryRunner } from "typeorm"; export class MigrationName1768682071562 implements MigrationInterface { - name = "MigrationName1768682071562"; + public name = "MigrationName1768682071562"; public async up(queryRunner: QueryRunner): Promise { await queryRunner.query( diff --git a/Common/UI/Components/Diagram/ConceptCards.tsx b/Common/UI/Components/Diagram/ConceptCards.tsx index 84c7ab0bcf..a5d233bd75 100644 --- a/Common/UI/Components/Diagram/ConceptCards.tsx +++ b/Common/UI/Components/Diagram/ConceptCards.tsx @@ -21,7 +21,7 @@ const ConceptCards: FunctionComponent = ( ): ReactElement => { const columns: number = props.columns || 2; - const getGridClasses = (): string => { + const getGridClasses: () => string = (): string => { switch (columns) { case 1: return "grid-cols-1"; diff --git a/Dashboard/src/Components/CallSMS/PhoneNumberPurchase.tsx b/Dashboard/src/Components/CallSMS/PhoneNumberPurchase.tsx index 62115908e2..bd6e66eea1 100644 --- a/Dashboard/src/Components/CallSMS/PhoneNumberPurchase.tsx +++ b/Dashboard/src/Components/CallSMS/PhoneNumberPurchase.tsx @@ -128,7 +128,7 @@ const PhoneNumberPurchase: FunctionComponent = ( ]); // Close the configure modal and reset state - const closeConfigureModal = (): void => { + const closeConfigureModal: () => void = (): void => { setShowConfigureModal(false); setConfigureStep("choose"); setAvailableNumbers([]); @@ -137,7 +137,9 @@ const PhoneNumberPurchase: FunctionComponent = ( }; // Search for available phone numbers - const searchPhoneNumbers = async (values: JSONObject): Promise => { + const searchPhoneNumbers: (values: JSONObject) => Promise = async ( + values: JSONObject, + ): Promise => { try { setIsSearching(true); setError(""); @@ -178,7 +180,7 @@ const PhoneNumberPurchase: FunctionComponent = ( }; // Purchase a phone number - const purchasePhoneNumber = async (): Promise => { + const purchasePhoneNumber: () => Promise = async (): Promise => { if (!selectedNumber) { return; } @@ -225,7 +227,7 @@ const PhoneNumberPurchase: FunctionComponent = ( }; // Release a phone number - const releasePhoneNumber = async (): Promise => { + const releasePhoneNumber: () => Promise = async (): Promise => { try { setIsLoading(true); setError(""); @@ -260,7 +262,7 @@ const PhoneNumberPurchase: FunctionComponent = ( }; // Fetch owned phone numbers from Twilio - const fetchOwnedNumbers = async (): Promise => { + const fetchOwnedNumbers: () => Promise = async (): Promise => { try { setIsLoadingOwned(true); setError(""); @@ -296,7 +298,7 @@ const PhoneNumberPurchase: FunctionComponent = ( }; // Assign an existing phone number to this policy - const assignExistingNumber = async (): Promise => { + const assignExistingNumber: () => Promise = async (): Promise => { if (!selectedOwnedNumber) { return; } @@ -344,7 +346,7 @@ const PhoneNumberPurchase: FunctionComponent = ( }; // Render current phone number section - const renderCurrentPhoneNumber = (): ReactElement => { + const renderCurrentPhoneNumber: () => ReactElement = (): ReactElement => { if (props.currentPhoneNumber) { return (
@@ -414,7 +416,7 @@ const PhoneNumberPurchase: FunctionComponent = ( } // Open the configure modal - const openConfigureModal = (): void => { + const openConfigureModal: () => void = (): void => { setConfigureStep("choose"); setShowConfigureModal(true); setAvailableNumbers([]); @@ -423,7 +425,7 @@ const PhoneNumberPurchase: FunctionComponent = ( }; // Render the configure modal content based on current step - const renderConfigureModalContent = (): ReactElement => { + const renderConfigureModalContent: () => ReactElement = (): ReactElement => { if (configureStep === "choose") { return (
@@ -651,7 +653,7 @@ const PhoneNumberPurchase: FunctionComponent = ( }; // Render buttons inline when hideCard is true - const renderButtons = (): ReactElement => { + const renderButtons: () => ReactElement = (): ReactElement => { return (