Releases: carbon-design-system/sveld
Releases · carbon-design-system/sveld
v0.18.0
v0.17.2
v0.17.1
v0.17.0
v0.16.1
v0.16.0
v0.15.3
Fixes
-
preserve JSDoc tags in prop comments (456e740, #87)
Input
/** * This is a comment. * @see https://github.com/ * @deprecated this prop will be removed in the next major release. * @type {boolean | string} */ export let prop = true;
Output
export interface InputProps { /** * This is a comment. * @see https://github.com/ * @deprecated this prop will be removed in the next major release. * @default true */ prop?: boolean | string; }
v0.15.2
v0.15.1
Fixes
-
function exported from
<script context="module">
should be typed as functions, not typesInput
<script context="module"> /** @type {(message: string) => void} */ export function log(message) { console.log(message); } </script>
Output (before/after)
- export type log = (message: string) => void; + export declare function log(message: string): void;
Usage
import { log } from "./Component.svelte"; // invocation log("message"); // typing const logger: typeof log = (m) => console.log(m);