Skip to content

v0.13.3

Compare
Choose a tag to compare
@metonym metonym released this 13 Feb 23:14
· 165 commits to main since this release

Fixes

  • component module exports should not be recognized as accessors (ae85e72)

    Input

    <script context="module">
      /**
      * Log something (export)
      * @type {(message: string) => void}
      */
      export function log(message) {
        console.log(message);
      }
    </script>
    
    <script>
      /**
      * Log something (accessor)
      * @type {(message: string) => void}
      */
      export function log(message) {
        console.log(message);
      }
    </script>
    

    Output

    /// <reference types="svelte" />
    import { SvelteComponentTyped } from "svelte";
    
    /**
     * Log something (export)
     */
    export type log = (message: string) => void;
    
    export interface InputProps {}
    
    export default class Input extends SvelteComponentTyped<InputProps, {}, {}> {
      /**
       * Log something (accessor)
       */
      log: (message: string) => void;
    }