Zicklag
Zicklag
Aarktype
Created by Zicklag on 4/18/2025 in #questions
Fix Slow Types Warning When Publishing to JSR?
Does anybody know how to fix the slow types warning when exporting an arktype type validator in a JSR package?
error[missing-explicit-type]: missing explicit type in the public API
--> /home/zicklag/git/muni-town/leaf/packages/leaf/sync-proto.ts:142:14
|
142 | export const clientMessage = type({
| ^^^^^^^^^^^^^ this symbol is missing an explicit type
|
= hint: add an explicit type annotation to the symbol

info: all symbols in the public API must have an explicit type
docs: https://jsr.io/go/slow-type-missing-explicit-type
error[missing-explicit-type]: missing explicit type in the public API
--> /home/zicklag/git/muni-town/leaf/packages/leaf/sync-proto.ts:142:14
|
142 | export const clientMessage = type({
| ^^^^^^^^^^^^^ this symbol is missing an explicit type
|
= hint: add an explicit type annotation to the symbol

info: all symbols in the public API must have an explicit type
docs: https://jsr.io/go/slow-type-missing-explicit-type
I'm not exactly sure how to add an explicit type for my Arktype types. I'm guessing it's not exactly possible to add an explicit type that satisfies the fast type checking that JSR is looking for, but I wanted to make sure.
11 replies