Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why I can't generate custom tags from a shared package? #1039

Open
dror-weiss opened this issue Apr 19, 2024 · 1 comment
Open

Why I can't generate custom tags from a shared package? #1039

dror-weiss opened this issue Apr 19, 2024 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@dror-weiss
Copy link

Question

I'm trying to share typia custom tags in a different package, but I can't generate the validation.
It's probably about naming of the imports but I can't seem to find a way to make it work.

This works:

import typia from 'typia';

const a = typia.createAssert<Settings>();

export type Settings = {
    domain: string & typia.tags.MinLength<20>;
};

This doesn't get generated

import typia from 'typia';
import {typiaTags} from '@company/package';

const a = typia.createAssert<Settings>();

export type Settings = {
    domain: string & typiaTags.MinLength<20>;
};

Any idea why?

My end goal is to share entire typia and custom tags from my other package, meaning:

import {typia, typiaTags} from '@company/package';

const a = typia.createAssert<Settings>();
//...
@samchon
Copy link
Owner

samchon commented Apr 20, 2024

Can you provide me a reproducible repo with the custom package?

I am also doing same thing with you, and in my case, it works properly.

@samchon samchon self-assigned this Apr 20, 2024
@samchon samchon added the question Further information is requested label Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants