fix(unplugin): exact import ITransformOptions.#1837
Merged
Conversation
Contributor
There was a problem hiding this comment.
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
ITransformOptionsfromtypia’slib/transformentry by adding a re-export inpackages/typia/src/transform.ts. - Update
@typia/unpluginto importITransformOptionsfromtypiainstead 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"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
ITransformOptionstype and its import/export paths.Type re-exports and import path updates:
packages/typia/src/transform.ts: Now explicitly re-exports theITransformOptionstype from@typia/coreand ensures the default and named exports from@typia/transformare preserved.packages/unplugin/src/core/options.ts: Updates the import path forITransformOptionsto import fromtypiainstead of@typia/core, streamlining type access for consumers.