SOLFIND
Web Lens
Portal home

TypeDoc Example

https://typedoc.org/example/index.html • 14 KB fetched
Open original page


TypeDoc Example TypeDoc Example Docs API GitHub Preparing search index... TypeDoc Example The TypeDoc Example Welcome to the TypeDoc example! TypeDoc is a documentation generator for TypeScript. TypeDoc automatically documents every variable, function, and class that is exported by your project. You can add explanations and examples to your documentation site by annotating your code with doc comments, e.g. /** * Calculates the square root of a number. * * @param x the number to calculate the root of. * @returns the square root if `x` is non-negative or `NaN` if `x` is negative. */ export function sqrt ( x : number ): number { return Math . sqrt ( x ); } Copy This project shows off some of TypeDoc's features: * Built-in support for various TypeScript language constructs * Markdown in doc comments * Syntax highlighting in code blocks Index of Examples Click the "Exports" link in the sidebar to see a complete list of everything in the package. Here are some examples we wanted to highlight: Rendering * External Markdown: here * Markdown showcase: here * Syntax highlighting showcase: here Functions * Simple functions: sqrt and sqrtArrowFunction * A generic function: concat * Functions that take an options object: makeHttpCallA and makeHttpCallB * An overloaded function: overloadedFunction * An external function exported under a different name: lodashSortBy Types * Type aliases: SimpleTypeAlias and ComplexGenericTypeAlias * Interfaces: User and AdminUser Classes * A basic class: Customer * A subclass: DeliveryCustomer * A complex class: CancellablePromise * A class that extends a built-in generic type: StringArray Enums * A basic enum: SimpleEnum * Using the @enum tag: EnumLikeObject Variables * PI , STRING_CONSTANT , and ObjectConstant React Components * Basic React components: CardA and CardB * A complex React component: EasyFormDialog and EasyFormDialogProps Settings Member Visibility * Protected * Inherited * External Theme OS Light Dark On This Page The Type Doc Example * Index of Examples * * Rendering * Functions * Types * Classes * Enums * Variables * React Components Docs API GitHub TypeDoc Example * Loading... Generated using TypeDoc

Links found on this page

  1. TypeDoc Example [direct]
  2. Docs [direct]
  3. API [direct]
  4. GitHub [direct]
  5. here [direct]
  6. here [direct]
  7. here [direct]
  8. sqrt [direct]
  9. sqrtArrowFunction [direct]
  10. concat [direct]
  11. makeHttpCallA [direct]
  12. makeHttpCallB [direct]
  13. overloadedFunction [direct]
  14. lodashSortBy [direct]
  15. SimpleTypeAlias [direct]
  16. ComplexGenericTypeAlias [direct]
  17. User [direct]
  18. AdminUser [direct]
  19. Customer [direct]
  20. DeliveryCustomer [direct]
  21. CancellablePromise [direct]
  22. StringArray [direct]
  23. SimpleEnum [direct]
  24. EnumLikeObject [direct]
  25. PI [direct]
  26. STRING_CONSTANT [direct]
  27. ObjectConstant [direct]
  28. CardA [direct]
  29. CardB [direct]
  30. EasyFormDialog [direct]
  31. EasyFormDialogProps [direct]
  32. TypeDoc Example [direct]