Skip to content

Commit

Permalink
Update jsdoc.md to use the @import keyword (#2159)
Browse files Browse the repository at this point in the history
Added the newer import syntax that works on TS 5.5
  • Loading branch information
Kipre authored Jul 29, 2024
1 parent 27970b1 commit 746bae2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion jsdoc.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Jsdoc
category: JavaScript
updated: 2020-06-23
updated: 2024-07-26
weight: -1
---

Expand Down Expand Up @@ -113,6 +113,10 @@ See: <https://jsdoc.app/tags-typedef.html>
* @typedef {import('./Foo').default} Bar
*/

// or

/** @import { Bar } from "./Foo.js" */

/**
* @param {Bar} x
*/
Expand Down

0 comments on commit 746bae2

Please sign in to comment.