8000 In JSDoc comments, doctrine can't parse arrow functions · Issue #256 · mhkeller/layercake · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
In JSDoc comments, doctrine can't parse arrow functions #256
Closed
@rgieseke

Description

@rgieseke

I started looking into Svelte 5 conversion (#255) of components and noted that doctrine can't handle arrow functions (the previously used Function works).

/** @type {(d: any) => string} [format=d => d] - A function that passes the current tick value and expects a nicely formatted value in return. */
  export let format = d => d;

For example on https://layercake.graphics/components/AxisX.svelte the properties are currently not displayed completely, everything after format is missing.

Image

These might be alternatives:

https://github.com/syavorsky/comment-parser
https://github.com/jsdoctypeparser/jsdoctypeparser

I look into that while I look into the Svelte 5 conversion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0