Skip to content

Unable to Test First Example on tsdoc.org Playground #437

Description

@dev-mcpd

Hi TSDoc Team!

I couldn't test the very first example on tsdoc.org's site. It generates an error because it starts with a class instead of a comment. Was this the expected behavior?

Thank you for your attention.

export class Statistics {
  /**
   * Returns the average of two numbers.
   *
   * @remarks
   * This method is part of the {@link core-library#Statistics | Statistics subsystem}.
   *
   * @param x - The first input number
   * @param y - The second input number
   * @returns The arithmetic mean of `x` and `y`
   *
   * @beta
   */
  public static getAverage(x: number, y: number): number {
    return (x + y) / 2.0;
  }
}
(1,1): Expecting a leading "/**"

Best regards,
cesardddp (@cesardddp)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions