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

@property is not a standard tag in TSDoc #247

Open
2 tasks
nick-y-ito opened this issue Feb 21, 2024 · 0 comments
Open
2 tasks

@property is not a standard tag in TSDoc #247

nick-y-ito opened this issue Feb 21, 2024 · 0 comments
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@nick-y-ito
Copy link
Member

nick-y-ito commented Feb 21, 2024

Description

The @property tag is used across the project; for example, you can find them in src/types/definition.ts. However, this is not a standard tag in TSDoc. The task is to revise those mistakes.

Criteria

  • Rewirte the TSDocs, where non-standard tags are used.
  • Create or modify interfaces as needed.

Here is the ideal way of writing a TSDoc for interfaces.

/**
 * Represents a detailed report of a transaction.
 */
interface TransactionReport {
    /**
     * The unique identifier for the transaction.
     */
    id: string;

    /**
     * The date and time when the transaction occurred.
     */
    timestamp: Date;

    /**
     * Details of the items involved in the transaction.
     */
    items: Array<{
        /**
         * The item's name.
         */
        name: string;

        /**
         * The quantity of the item that was transacted.
         */
        quantity: number;

        /**
         * The price per unit of the item.
         */
        pricePerUnit: number;
    }>;

    // Additional complex properties...
}

/**
 * Generates a detailed report for a specific transaction.
 * @param transactionId The ID of the transaction.
 * @returns A {@link TransactionReport} object containing detailed information about the transaction.
 */
function generateTransactionReport(transactionId: string): TransactionReport {
    // Implementation...
}

Notes

@nick-y-ito nick-y-ito moved this to 📋 Backlog in Nishiki Feb 21, 2024
@nick-y-ito nick-y-ito added the documentation Improvements or additions to documentation label Feb 21, 2024
@nick-y-ito nick-y-ito moved this from 📋 Backlog to 📋 Backlog v1.0 in Nishiki Feb 27, 2024
@nick-y-ito nick-y-ito added the bug Something isn't working label Feb 27, 2024
@nick-y-ito nick-y-ito assigned nick-y-ito and unassigned nick-y-ito Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant