11 Matching Annotations
  1. Sep 2023
  2. Nov 2021
    1. Generate type with the index signature: interface RandomMappingWithIndexSignature { stringProp: string; numberProp: number; [propName: string]: string | number | undefined; }
  3. Jun 2021
  4. Jan 2021
  5. Sep 2020
    1. What I believe should happen is the Svelte compiler should, when a promise is passed to onMount, realise that a promise has been passed, and await the result of the function to be used as the onDestroy function. i.e, it should behave the exact same way for an async function as it does for a non-async function (if this is possible)
    1. The main rationale for this PR is that, in my hones opinion, Svelte needs a way to support style overrides in an intuitive and close to plain HTML/CSS way. What I regard as intuitive is: Looking at how customizing of styles is being done when applying a typical CSS component framework, and making that possible with Svelte.
  6. Jul 2020
    1. It’s even worse that there’s no alternative method that does the unsurprising thing IMO.
    2. The "unsurprising" thing here would generally be to maintain the order, for instance, and subtract the first or last instance...
    3. Code doing surprising and slightly nonsensical things... I'm weary now. And that's with ruby being more consistent than most!
  7. May 2020