Skip to content

fix(unplugin): exact import ITransformOptions.#1837

Merged
samchon merged 1 commit intomasterfrom
fix/unplugin-options
May 6, 2026
Merged

fix(unplugin): exact import ITransformOptions.#1837
samchon merged 1 commit intomasterfrom
fix/unplugin-options

Conversation

@samchon
Copy link
Copy Markdown
Owner

@samchon samchon commented May 6, 2026

This pull request makes improvements to how type definitions are imported and re-exported between packages, ensuring consistency and simplifying usage. The main focus is on the ITransformOptions type and its import/export paths.

Type re-exports and import path updates:

  • packages/typia/src/transform.ts: Now explicitly re-exports the ITransformOptions type from @typia/core and ensures the default and named exports from @typia/transform are preserved.
  • packages/unplugin/src/core/options.ts: Updates the import path for ITransformOptions to import from typia instead of @typia/core, streamlining type access for consumers.

@samchon samchon self-assigned this May 6, 2026
@samchon samchon added the bug Something isn't working label May 6, 2026
@samchon samchon marked this pull request as ready for review May 6, 2026 09:58
Copilot AI review requested due to automatic review settings May 6, 2026 09:58
@samchon samchon merged commit 8683021 into master May 6, 2026
7 checks passed
@samchon samchon deleted the fix/unplugin-options branch May 6, 2026 09:59
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts how ITransformOptions is surfaced across packages so downstream tooling (notably @typia/unplugin) can reference the transformer options type through intended public entrypoints.

Changes:

  • Re-export ITransformOptions from typia’s lib/transform entry by adding a re-export in packages/typia/src/transform.ts.
  • Update @typia/unplugin to import ITransformOptions from typia instead of @typia/core.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
packages/unplugin/src/core/options.ts Switches ITransformOptions import path used in plugin option typing.
packages/typia/src/transform.ts Adds an explicit re-export for ITransformOptions alongside existing @typia/transform exports.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

import type { ITransformOptions } from "@typia/core";
import { createDefu } from "defu";
import type { OverrideProperties, RequiredDeep } from "type-fest";
import type { ITransformOptions } from "typia";
import transform from "@typia/transform";

export default transform;
export { ITransformOptions } from "@typia/core";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants