From 79b3648b7817c1417376c14fe550eaa938c3c355 Mon Sep 17 00:00:00 2001 From: "vittorio.guerriero" Date: Mon, 25 Dec 2023 10:12:11 +0000 Subject: [PATCH] prettier --- .../descriptor/identifier/identifier.ts | 3 ++- .../descriptor/typeQuery/enumTypeQuery.ts | 8 +++++-- .../mockFactoryCall/mockFactoryCall.ts | 22 +++++++++++-------- 3 files changed, 21 insertions(+), 12 deletions(-) diff --git a/src/transformer/descriptor/identifier/identifier.ts b/src/transformer/descriptor/identifier/identifier.ts index fe9fb2ba..2878aeed 100644 --- a/src/transformer/descriptor/identifier/identifier.ts +++ b/src/transformer/descriptor/identifier/identifier.ts @@ -10,7 +10,8 @@ export function GetIdentifierDescriptor( scope: Scope ): ts.Expression { if ( - core.ts.identifierToKeywordKind(node) === core.ts.SyntaxKind?.UndefinedKeyword + core.ts.identifierToKeywordKind(node) === + core.ts.SyntaxKind?.UndefinedKeyword ) { return GetUndefinedDescriptor(); } diff --git a/src/transformer/descriptor/typeQuery/enumTypeQuery.ts b/src/transformer/descriptor/typeQuery/enumTypeQuery.ts index cf7284b8..e9cb48ac 100644 --- a/src/transformer/descriptor/typeQuery/enumTypeQuery.ts +++ b/src/transformer/descriptor/typeQuery/enumTypeQuery.ts @@ -4,11 +4,15 @@ import { createBlock, createReturn, } from '../../../typescriptFactory/typescriptFactory'; -import { core } from "../../core/core"; +import { core } from '../../core/core'; export function GetTypeofEnumDescriptor( enumDeclaration: ts.EnumDeclaration ): ts.Expression { - const declaration = core.ts.factory.createEnumDeclaration(undefined, enumDeclaration.name, enumDeclaration.members); + const declaration = core.ts.factory.createEnumDeclaration( + undefined, + enumDeclaration.name, + enumDeclaration.members + ); return createArrowFunction( createBlock([declaration, createReturn(enumDeclaration.name)], true) ); diff --git a/src/transformer/mockFactoryCall/mockFactoryCall.ts b/src/transformer/mockFactoryCall/mockFactoryCall.ts index 4a122526..8f392faa 100644 --- a/src/transformer/mockFactoryCall/mockFactoryCall.ts +++ b/src/transformer/mockFactoryCall/mockFactoryCall.ts @@ -1,16 +1,19 @@ import type * as ts from 'typescript'; -import {TypescriptHelper} from '../descriptor/helper/helper'; -import {GenericDeclaration} from '../genericDeclaration/genericDeclaration'; -import {IGenericDeclaration} from '../genericDeclaration/genericDeclaration.interface'; +import { TypescriptHelper } from '../descriptor/helper/helper'; +import { GenericDeclaration } from '../genericDeclaration/genericDeclaration'; +import { IGenericDeclaration } from '../genericDeclaration/genericDeclaration.interface'; import { extensionExpressionSupported, GenericDeclarationSupported, } from '../genericDeclaration/genericDeclarationSupported'; -import {MockDefiner} from '../mockDefiner/mockDefiner'; -import {Identifiers} from '../mockIdentifier/mockIdentifier'; -import {Scope} from '../scope/scope'; -import {createArrayLiteral, createCall,} from '../../typescriptFactory/typescriptFactory'; -import {core} from '../core/core'; +import { MockDefiner } from '../mockDefiner/mockDefiner'; +import { Identifiers } from '../mockIdentifier/mockIdentifier'; +import { Scope } from '../scope/scope'; +import { + createArrayLiteral, + createCall, +} from '../../typescriptFactory/typescriptFactory'; +import { core } from '../core/core'; export function GetMockFactoryCall( typeReferenceNode: ts.TypeReferenceNode, @@ -79,7 +82,8 @@ export function GetMockFactoryCallTypeofEnum( declaration: ts.EnumDeclaration, scope: Scope ): ts.Expression { - const mockFactoryCall: ts.Expression = MockDefiner.instance.getMockFactoryTypeofEnum(declaration, scope); + const mockFactoryCall: ts.Expression = + MockDefiner.instance.getMockFactoryTypeofEnum(declaration, scope); return createCall(mockFactoryCall, []); }