mirror of
https://github.com/onkelbeh/cheatsheets.git
synced 2025-06-14 22:27:33 +02:00
Update jsdoc.md to use the @import keyword (#2159)
Added the newer import syntax that works on TS 5.5
This commit is contained in:
parent
27970b1495
commit
746bae2ebe
6
jsdoc.md
6
jsdoc.md
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: Jsdoc
|
||||
category: JavaScript
|
||||
updated: 2020-06-23
|
||||
updated: 2024-07-26
|
||||
weight: -1
|
||||
---
|
||||
|
||||
@ -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
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user