Giter Club home page Giter Club logo

Comments (8)

babichjacob avatar babichjacob commented on August 30, 2024

Looks like the only place this hasn't happened yet is index.svelte which I just recently fixed in the derivative but forgot to do again here. Maybe I can fix that right after dinner in ~20 minutes. Thank you.

from sapper-typescript-graphql-template.

benmccann avatar benmccann commented on August 30, 2024

Oh cool. I actually hadn't opened the other files and didn't realize they were already updated :-)

I wonder if it'd be better to just set "noUnusedLocals": false and remove most of the // @ts-ignore

from sapper-typescript-graphql-template.

babichjacob avatar babichjacob commented on August 30, 2024

It's claimed svelte-preprocess won't support that https://github.com/sveltejs/svelte-preprocess#typescript

Edit: It doesn't in the override / merge options, but it does in the global tsconfig.json file.

from sapper-typescript-graphql-template.

babichjacob avatar babichjacob commented on August 30, 2024

Actually, I think it would be a better idea to globally disable that and leave it to ESLint.

from sapper-typescript-graphql-template.

babichjacob avatar babichjacob commented on August 30, 2024

Probably closed by cc679eb

from sapper-typescript-graphql-template.

benmccann avatar benmccann commented on August 30, 2024

Just FYI, I think that the only reason the templates in this repo are able to be written in TypeScript is that they don't have preload functions. I have a PR pending in the Sapper repo that will fix an issue there to allow you to write preload functions in TypeScript-based Svelte templates.

You can probably still go ahead and use TypeScript in the templates since you don't have preload functions, but I thought I'd give you a heads up in case you run into any issues trying to add a preload

from sapper-typescript-graphql-template.

babichjacob avatar babichjacob commented on August 30, 2024

Thank you for reminding me. I remember historically having to write context="module" parts of the script in regular JS, but I don't know if any changes since then have allowed TS there yet.

from sapper-typescript-graphql-template.

babichjacob avatar babichjacob commented on August 30, 2024

closed by #11 (sapper 0.28) 😄

from sapper-typescript-graphql-template.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.