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

Slow Types #9

Open
stwiname opened this issue Oct 21, 2024 · 0 comments
Open

Slow Types #9

stwiname opened this issue Oct 21, 2024 · 0 comments

Comments

@stwiname
Copy link
Contributor

Because of using @sinclair/typebox we export what are considered slow types, this means that when publishing we need to disable slow types check and the same applies to linting. This is an all or nothing option so we cannot allow certain scenarios.

It would be good to find a solution to remove the slow types.

error[missing-explicit-type]: missing explicit type in the public API
 --> /Users/scotttwiname/Projects/subql-ai-app-framework/src/context/context.ts:5:14
  |
5 | export const ContextType = Type.Object({
  |              ^^^^^^^^^^^ 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
 --> /Users/scotttwiname/Projects/subql-ai-app-framework/src/project/project.ts:7:14
  |
7 | export const FunctionToolType = Type.Object({
  |              ^^^^^^^^^^^^^^^^ 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
  --> /Users/scotttwiname/Projects/subql-ai-app-framework/src/project/project.ts:25:14
   |
25 | export const ProjectManifest = Type.Object({
   |              ^^^^^^^^^^^^^^^ 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
  --> /Users/scotttwiname/Projects/subql-ai-app-framework/src/project/project.ts:47:14
   |
47 | export const Project = Type.Object({
   |              ^^^^^^^ 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
  --> /Users/scotttwiname/Projects/subql-ai-app-framework/src/project/project.ts:52:14
   |
52 | export const ProjectEntry = Type.Function(
   |              ^^^^^^^^^^^^ 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
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

No branches or pull requests

1 participant