Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoppippi committed Feb 2, 2025
1 parent 2e40594 commit 1fba09b
Show file tree
Hide file tree
Showing 357 changed files with 795 additions and 790 deletions.
8 changes: 4 additions & 4 deletions src/CamelCase.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Equal } from "./typings/Equal";
import { IsTuple } from "./typings/IsTuple";
import { NativeClass } from "./typings/NativeClass";
import { ValueOf } from "./typings/ValueOf";
import type { Equal } from "./typings/Equal";
import type { IsTuple } from "./typings/IsTuple";
import type { NativeClass } from "./typings/NativeClass";
import type { ValueOf } from "./typings/ValueOf";

/**
* Camel case type.
Expand Down
2 changes: 1 addition & 1 deletion src/IRandomGenerator.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { OpenApi } from "@samchon/openapi";
import type { OpenApi } from "@samchon/openapi";

export interface IRandomGenerator {
// REGULAR
Expand Down
8 changes: 4 additions & 4 deletions src/PascalCase.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Equal } from "./typings/Equal";
import { IsTuple } from "./typings/IsTuple";
import { NativeClass } from "./typings/NativeClass";
import { ValueOf } from "./typings/ValueOf";
import type { Equal } from "./typings/Equal";
import type { IsTuple } from "./typings/IsTuple";
import type { NativeClass } from "./typings/NativeClass";
import type { ValueOf } from "./typings/ValueOf";

/**
* Pascal case type.
Expand Down
10 changes: 5 additions & 5 deletions src/Primitive.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Equal } from "./typings/Equal";
import { IsTuple } from "./typings/IsTuple";
import { NativeClass } from "./typings/NativeClass";
import { ValueOf } from "./typings/ValueOf";
import type { Equal } from "./typings/Equal";
import type { IsTuple } from "./typings/IsTuple";
import type { NativeClass } from "./typings/NativeClass";
import type { ValueOf } from "./typings/ValueOf";

import { Format } from "./tags";
import type { Format } from "./tags";

/**
* Primitive type of JSON.
Expand Down
8 changes: 4 additions & 4 deletions src/Resolved.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Equal } from "./typings/Equal";
import { IsTuple } from "./typings/IsTuple";
import { NativeClass } from "./typings/NativeClass";
import { ValueOf } from "./typings/ValueOf";
import type { Equal } from "./typings/Equal";
import type { IsTuple } from "./typings/IsTuple";
import type { NativeClass } from "./typings/NativeClass";
import type { ValueOf } from "./typings/ValueOf";

/**
* Resolved type erased every methods.
Expand Down
6 changes: 3 additions & 3 deletions src/SnakeCase.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Equal } from "./typings/Equal";
import { NativeClass } from "./typings/NativeClass";
import { ValueOf } from "./typings/ValueOf";
import type { Equal } from "./typings/Equal";
import type { NativeClass } from "./typings/NativeClass";
import type { ValueOf } from "./typings/ValueOf";

/**
* Snake case type.
Expand Down
3 changes: 2 additions & 1 deletion src/executable/TypiaSetupWizard.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import fs from "fs";
import { DetectResult, detect } from "package-manager-detector";
import type { DetectResult} from "package-manager-detector";
import { detect } from "package-manager-detector";

import { ArgumentParser } from "./setup/ArgumentParser";
import { CommandExecutor } from "./setup/CommandExecutor";
Expand Down
2 changes: 1 addition & 1 deletion src/executable/setup/ArgumentParser.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import commander from "commander";
import inquirer from "inquirer";

import { PackageManager } from "./PackageManager";
import type { PackageManager } from "./PackageManager";

export namespace ArgumentParser {
export type Inquiry<T> = (
Expand Down
2 changes: 1 addition & 1 deletion src/executable/setup/PluginConfigurator.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import comments from "comment-json";
import fs from "fs";

import { TypiaSetupWizard } from "../TypiaSetupWizard";
import type { TypiaSetupWizard } from "../TypiaSetupWizard";

export namespace PluginConfigurator {
export async function configure(
Expand Down
2 changes: 1 addition & 1 deletion src/factories/ExpressionFactory.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ts from "typescript";

import { ImportProgrammer } from "../programmers/ImportProgrammer";
import type { ImportProgrammer } from "../programmers/ImportProgrammer";

import { _randomFormatUuid } from "../internal/_randomFormatUuid";

Expand Down
6 changes: 3 additions & 3 deletions src/factories/JsonMetadataFactory.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import ts from "typescript";
import type ts from "typescript";

import { Metadata } from "../schemas/metadata/Metadata";
import type { Metadata } from "../schemas/metadata/Metadata";

import { AtomicPredicator } from "../programmers/helpers/AtomicPredicator";

import { TransformerError } from "../transformers/TransformerError";

import { ValidationPipe } from "../typings/ValidationPipe";
import type { ValidationPipe } from "../typings/ValidationPipe";

import { MetadataCollection } from "./MetadataCollection";
import { MetadataFactory } from "./MetadataFactory";
Expand Down
6 changes: 3 additions & 3 deletions src/factories/MetadataCollection.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import ts from "typescript";
import type ts from "typescript";

import { IMetadataComponents } from "../schemas/metadata/IMetadataComponents";
import { Metadata } from "../schemas/metadata/Metadata";
import type { IMetadataComponents } from "../schemas/metadata/IMetadataComponents";
import type { Metadata } from "../schemas/metadata/Metadata";
import { MetadataAliasType } from "../schemas/metadata/MetadataAliasType";
import { MetadataArrayType } from "../schemas/metadata/MetadataArrayType";
import { MetadataObjectType } from "../schemas/metadata/MetadataObjectType";
Expand Down
8 changes: 4 additions & 4 deletions src/factories/MetadataCommentTagFactory.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import ts from "typescript";
import type ts from "typescript";

import { IMetadataTypeTag } from "../schemas/metadata/IMetadataTypeTag";
import { Metadata } from "../schemas/metadata/Metadata";
import type { IMetadataTypeTag } from "../schemas/metadata/IMetadataTypeTag";
import type { Metadata } from "../schemas/metadata/Metadata";

import { Writable } from "../typings/Writable";

import { FormatCheatSheet } from "../tags/internal/FormatCheatSheet";
import { MetadataFactory } from "./MetadataFactory";
import type { MetadataFactory } from "./MetadataFactory";
import { MetadataTypeTagFactory } from "./MetadataTypeTagFactory";

/**
Expand Down
14 changes: 7 additions & 7 deletions src/factories/MetadataFactory.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import ts from "typescript";

import { Metadata } from "../schemas/metadata/Metadata";
import { MetadataAliasType } from "../schemas/metadata/MetadataAliasType";
import { MetadataArrayType } from "../schemas/metadata/MetadataArrayType";
import type { MetadataAliasType } from "../schemas/metadata/MetadataAliasType";
import type { MetadataArrayType } from "../schemas/metadata/MetadataArrayType";
import { MetadataConstant } from "../schemas/metadata/MetadataConstant";
import { MetadataFunction } from "../schemas/metadata/MetadataFunction";
import type { MetadataFunction } from "../schemas/metadata/MetadataFunction";
import { MetadataObject } from "../schemas/metadata/MetadataObject";
import { MetadataObjectType } from "../schemas/metadata/MetadataObjectType";
import { MetadataTupleType } from "../schemas/metadata/MetadataTupleType";
import type { MetadataObjectType } from "../schemas/metadata/MetadataObjectType";
import type { MetadataTupleType } from "../schemas/metadata/MetadataTupleType";
import { explore_metadata } from "./internal/metadata/explore_metadata";
import { iterate_metadata_collection } from "./internal/metadata/iterate_metadata_collection";
import { iterate_metadata_sort } from "./internal/metadata/iterate_metadata_sort";

import { ValidationPipe } from "../typings/ValidationPipe";
import type { ValidationPipe } from "../typings/ValidationPipe";

import { ExpressionFactory } from "./ExpressionFactory";
import { MetadataCollection } from "./MetadataCollection";
import type { MetadataCollection } from "./MetadataCollection";

export namespace MetadataFactory {
export type Validator = (meta: Metadata, explore: IExplore) => string[];
Expand Down
10 changes: 5 additions & 5 deletions src/factories/MetadataTypeTagFactory.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { IMetadataTypeTag } from "../schemas/metadata/IMetadataTypeTag";
import { Metadata } from "../schemas/metadata/Metadata";
import { MetadataObjectType } from "../schemas/metadata/MetadataObjectType";
import { MetadataProperty } from "../schemas/metadata/MetadataProperty";
import type { IMetadataTypeTag } from "../schemas/metadata/IMetadataTypeTag";
import type { Metadata } from "../schemas/metadata/Metadata";
import type { MetadataObjectType } from "../schemas/metadata/MetadataObjectType";
import type { MetadataProperty } from "../schemas/metadata/MetadataProperty";

import { MetadataFactory } from "./MetadataFactory";
import type { MetadataFactory } from "./MetadataFactory";
import { MetadataTypeTagSchemaFactory } from "./MetadataTypeTagSchemaFactory";

export namespace MetadataTypeTagFactory {
Expand Down
4 changes: 2 additions & 2 deletions src/factories/MetadataTypeTagSchemaFactory.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Metadata } from "../schemas/metadata/Metadata";
import { MetadataObjectType } from "../schemas/metadata/MetadataObjectType";
import type { Metadata } from "../schemas/metadata/Metadata";
import type { MetadataObjectType } from "../schemas/metadata/MetadataObjectType";

export namespace MetadataTypeTagSchemaFactory {
export const object = (props: {
Expand Down
2 changes: 1 addition & 1 deletion src/factories/NumericRangeFactory.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ts from "typescript";

import { ProtobufAtomic } from "../typings/ProtobufAtomic";
import type { ProtobufAtomic } from "../typings/ProtobufAtomic";

import { ExpressionFactory } from "./ExpressionFactory";

Expand Down
22 changes: 11 additions & 11 deletions src/factories/ProtobufFactory.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import ts from "typescript";
import type ts from "typescript";

import { IMetadataTypeTag } from "../schemas/metadata/IMetadataTypeTag";
import { Metadata } from "../schemas/metadata/Metadata";
import { MetadataObjectType } from "../schemas/metadata/MetadataObjectType";
import { MetadataProperty } from "../schemas/metadata/MetadataProperty";
import { IProtobufProperty } from "../schemas/protobuf/IProtobufProperty";
import { IProtobufPropertyType } from "../schemas/protobuf/IProtobufPropertyType";
import { IProtobufSchema } from "../schemas/protobuf/IProtobufSchema";
import type { IMetadataTypeTag } from "../schemas/metadata/IMetadataTypeTag";
import type { Metadata } from "../schemas/metadata/Metadata";
import type { MetadataObjectType } from "../schemas/metadata/MetadataObjectType";
import type { MetadataProperty } from "../schemas/metadata/MetadataProperty";
import type { IProtobufProperty } from "../schemas/protobuf/IProtobufProperty";
import type { IProtobufPropertyType } from "../schemas/protobuf/IProtobufPropertyType";
import type { IProtobufSchema } from "../schemas/protobuf/IProtobufSchema";

import { ProtobufUtil } from "../programmers/helpers/ProtobufUtil";

import { TransformerError } from "../transformers/TransformerError";

import { ProtobufAtomic } from "../typings/ProtobufAtomic";
import { ValidationPipe } from "../typings/ValidationPipe";
import type { ProtobufAtomic } from "../typings/ProtobufAtomic";
import type { ValidationPipe } from "../typings/ValidationPipe";

import { MetadataCollection } from "./MetadataCollection";
import type { MetadataCollection } from "./MetadataCollection";
import { MetadataFactory } from "./MetadataFactory";

export namespace ProtobufFactory {
Expand Down
8 changes: 4 additions & 4 deletions src/factories/internal/metadata/IMetadataIteratorProps.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import ts from "typescript";
import type ts from "typescript";

import { Metadata } from "../../../schemas/metadata/Metadata";
import type { Metadata } from "../../../schemas/metadata/Metadata";

import { MetadataCollection } from "../../MetadataCollection";
import { MetadataFactory } from "../../MetadataFactory";
import type { MetadataCollection } from "../../MetadataCollection";
import type { MetadataFactory } from "../../MetadataFactory";

export interface IMetadataIteratorProps<Type extends ts.Type = ts.Type> {
options: MetadataFactory.IOptions;
Expand Down
2 changes: 1 addition & 1 deletion src/factories/internal/metadata/emend_metadata_atomics.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Metadata } from "../../../schemas/metadata/Metadata";
import type { Metadata } from "../../../schemas/metadata/Metadata";
import { MetadataAtomic } from "../../../schemas/metadata/MetadataAtomic";

import { ArrayUtil } from "../../../utils/ArrayUtil";
Expand Down
6 changes: 3 additions & 3 deletions src/factories/internal/metadata/emplace_metadata_alias.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Metadata } from "../../../schemas/metadata/Metadata";
import { MetadataAliasType } from "../../../schemas/metadata/MetadataAliasType";
import type { Metadata } from "../../../schemas/metadata/Metadata";
import type { MetadataAliasType } from "../../../schemas/metadata/MetadataAliasType";

import { ArrayUtil } from "../../../utils/ArrayUtil";

import { IMetadataIteratorProps } from "./IMetadataIteratorProps";
import type { IMetadataIteratorProps } from "./IMetadataIteratorProps";
import { explore_metadata } from "./explore_metadata";

export const emplace_metadata_alias = (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import ts from "typescript";
import type ts from "typescript";

import { Metadata } from "../../../schemas/metadata/Metadata";
import { MetadataArrayType } from "../../../schemas/metadata/MetadataArrayType";
import type { Metadata } from "../../../schemas/metadata/Metadata";
import type { MetadataArrayType } from "../../../schemas/metadata/MetadataArrayType";

import { ArrayUtil } from "../../../utils/ArrayUtil";

import { IMetadataIteratorProps } from "./IMetadataIteratorProps";
import type { IMetadataIteratorProps } from "./IMetadataIteratorProps";
import { explore_metadata } from "./explore_metadata";

interface IProps extends IMetadataIteratorProps {
Expand Down
6 changes: 3 additions & 3 deletions src/factories/internal/metadata/emplace_metadata_object.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import ts from "typescript";

import { Metadata } from "../../../schemas/metadata/Metadata";
import { MetadataObjectType } from "../../../schemas/metadata/MetadataObjectType";
import type { Metadata } from "../../../schemas/metadata/Metadata";
import type { MetadataObjectType } from "../../../schemas/metadata/MetadataObjectType";
import { MetadataProperty } from "../../../schemas/metadata/MetadataProperty";

import { Writable } from "../../../typings/Writable";

import { ArrayUtil } from "../../../utils/ArrayUtil";

import { CommentFactory } from "../../CommentFactory";
import { IMetadataIteratorProps } from "./IMetadataIteratorProps";
import type { IMetadataIteratorProps } from "./IMetadataIteratorProps";
import { MetadataHelper } from "./MetadataHelper";
import { explore_metadata } from "./explore_metadata";
import { iterate_metadata_coalesce } from "./iterate_metadata_coalesce";
Expand Down
4 changes: 2 additions & 2 deletions src/factories/internal/metadata/emplace_metadata_tuple.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import ts from "typescript";

import { Metadata } from "../../../schemas/metadata/Metadata";
import { MetadataTupleType } from "../../../schemas/metadata/MetadataTupleType";
import type { MetadataTupleType } from "../../../schemas/metadata/MetadataTupleType";

import { Writable } from "../../../typings/Writable";

import { ArrayUtil } from "../../../utils/ArrayUtil";

import { IMetadataIteratorProps } from "./IMetadataIteratorProps";
import type { IMetadataIteratorProps } from "./IMetadataIteratorProps";
import { explore_metadata } from "./explore_metadata";

export const emplace_metadata_tuple = (
Expand Down
4 changes: 2 additions & 2 deletions src/factories/internal/metadata/explore_metadata.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import ts from "typescript";
import type ts from "typescript";

import { Metadata } from "../../../schemas/metadata/Metadata";

import { IMetadataIteratorProps } from "./IMetadataIteratorProps";
import type { IMetadataIteratorProps } from "./IMetadataIteratorProps";
import { emend_metadata_atomics } from "./emend_metadata_atomics";
import { iterate_metadata } from "./iterate_metadata";

Expand Down
4 changes: 2 additions & 2 deletions src/factories/internal/metadata/iterate_metadata.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import ts from "typescript";
import type ts from "typescript";

import { TypeFactory } from "../../TypeFactory";
import { IMetadataIteratorProps } from "./IMetadataIteratorProps";
import type { IMetadataIteratorProps } from "./IMetadataIteratorProps";
import { iterate_metadata_alias } from "./iterate_metadata_alias";
import { iterate_metadata_array } from "./iterate_metadata_array";
import { iterate_metadata_atomic } from "./iterate_metadata_atomic";
Expand Down
6 changes: 3 additions & 3 deletions src/factories/internal/metadata/iterate_metadata_alias.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import ts from "typescript";
import type ts from "typescript";

import { MetadataAlias } from "../../../schemas/metadata/MetadataAlias";
import { MetadataAliasType } from "../../../schemas/metadata/MetadataAliasType";
import type { MetadataAliasType } from "../../../schemas/metadata/MetadataAliasType";

import { ArrayUtil } from "../../../utils/ArrayUtil";

import { IMetadataIteratorProps } from "./IMetadataIteratorProps";
import type { IMetadataIteratorProps } from "./IMetadataIteratorProps";
import { emplace_metadata_alias } from "./emplace_metadata_alias";

export const iterate_metadata_alias = (
Expand Down
6 changes: 3 additions & 3 deletions src/factories/internal/metadata/iterate_metadata_array.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import ts from "typescript";
import type ts from "typescript";

import { MetadataArray } from "../../../schemas/metadata/MetadataArray";
import { MetadataArrayType } from "../../../schemas/metadata/MetadataArrayType";
import type { MetadataArrayType } from "../../../schemas/metadata/MetadataArrayType";

import { ArrayUtil } from "../../../utils/ArrayUtil";

import { IMetadataIteratorProps } from "./IMetadataIteratorProps";
import type { IMetadataIteratorProps } from "./IMetadataIteratorProps";
import { emplace_metadata_array_type } from "./emplace_metadata_array_type";

export const iterate_metadata_array = (
Expand Down
2 changes: 1 addition & 1 deletion src/factories/internal/metadata/iterate_metadata_atomic.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ts from "typescript";

import { Metadata } from "../../../schemas/metadata/Metadata";
import type { Metadata } from "../../../schemas/metadata/Metadata";
import { MetadataAtomic } from "../../../schemas/metadata/MetadataAtomic";

import { ArrayUtil } from "../../../utils/ArrayUtil";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ts from "typescript";

import { Metadata } from "../../../schemas/metadata/Metadata";
import type { Metadata } from "../../../schemas/metadata/Metadata";

import { Writable } from "../../../typings/Writable";

Expand Down
Loading

0 comments on commit 1fba09b

Please sign in to comment.