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

[publish] slow types error with implicit string return #25097

Open
teidesu opened this issue Aug 19, 2024 · 1 comment
Open

[publish] slow types error with implicit string return #25097

teidesu opened this issue Aug 19, 2024 · 1 comment
Labels
feat new feature (which has been agreed to/accepted) publish Related to "deno publish" subcommand

Comments

@teidesu
Copy link

teidesu commented Aug 19, 2024

mcve

any of the following fail to publish due to slow types:

export function foo() {
    return `hello ${123}`
}

export function bar() {
    return `hello`
}

export function baz() {
    return 'hello'
}

export const egg = () => `hello ${123}`

but compile successfully under --isolatedDeclarations

error

1 | export function foo() {
  |                 ^^^ this function is missing an explicit return type
  | 
  = hint: add an explicit return type to the function

  info: all functions in the public API must have an explicit return type
  docs: https://jsr.io/go/slow-type-missing-explicit-return-type
...etc...

version

deno 1.46.0-rc.1+526f39f

@dsherret dsherret added enhancement publish Related to "deno publish" subcommand labels Aug 19, 2024
@dsherret
Copy link
Member

@lucacasonato lucacasonato added feat new feature (which has been agreed to/accepted) and removed enhancement labels Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat new feature (which has been agreed to/accepted) publish Related to "deno publish" subcommand
Projects
None yet
Development

No branches or pull requests

3 participants