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

Missing name in the default export example in the generated docs #459

Closed
nicolo-ribaudo opened this issue Apr 28, 2024 · 3 comments · Fixed by denoland/deno_doc#582
Closed
Labels
bug Something isn't working docs gen Related to the documentation generation

Comments

@nicolo-ribaudo
Copy link

https://jsr.io/@nic/decimal-literal/doc/~/default

image

import from "name" is missing some identifier. It'd be great if I (package author) could configure it, but an auto-generated one is still better than nothing.

@kt3k
Copy link
Contributor

kt3k commented Jun 3, 2024

Now we use module identifier for this case.

import module from "@nic/decimal-literal";

@kt3k
Copy link
Contributor

kt3k commented Jun 3, 2024

It'd be great if I (package author) could configure it,

It's not possible yet. Alternatively you can set arbitrary identifier if you use the following pattern:

export default function Foobar() { ... }

Then the usage box shows

import Foobar from "...";

@crowlKats
Copy link
Collaborator

Closing as fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working docs gen Related to the documentation generation
Projects
Status: Done
4 participants