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

TypeSystem.Type returning any after updating to 0.32.16 #800

Closed
SuperKXT opened this issue Mar 21, 2024 · 1 comment · Fixed by #801
Closed

TypeSystem.Type returning any after updating to 0.32.16 #800

SuperKXT opened this issue Mar 21, 2024 · 1 comment · Fixed by #801

Comments

@SuperKXT
Copy link

Using in an ESM backend application, this is the problematic part of the generated d.ts file.

export declare namespace TypeSystem {
    /** Creates a new type */
    function Type<Type, Options = Record<PropertyKey, unknown>>(kind: string, check: (options: Options, value: unknown) => boolean): (options?: Partial<Options>) => import("../type/unsafe/unsafe.mjs").TUnsafe<Type>;
	// ^? `TUnsafe` is not imported correctly and returns `any`
    /** Creates a new string format */
    function Format<F extends string>(format: F, check: (value: string) => boolean): F;
}
@sinclairzx81
Copy link
Owner

@SuperKXT Hi, Thanks for reporting, this is a good catch!

I've just published a quick fix for this 0.32.18. This should resolve the issue, but if you run into any problems, feel free to ping on this thread.

Cheers!
S

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants