Comments (8)
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.
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.
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.
Actually, I think it would be a better idea to globally disable that and leave it to ESLint.
from sapper-typescript-graphql-template.
Probably closed by cc679eb
from sapper-typescript-graphql-template.
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.
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.
closed by #11 (sapper 0.28) 😄
from sapper-typescript-graphql-template.
Related Issues (11)
- Document optionally removing the GraphQL server HOT 1
- `npm run dev` results in "Could not resolve entry module (undefined\server.ts)." HOT 9
- Dev server crashes on syntax errors HOT 1
- Unrecognized option 'defaults' (VS Code) HOT 2
- Upgrade to Sapper 0.28.1 and remove types directory HOT 1
- Error in preload: Error: Object is possibly 'undefined.' HOT 5
- vs code linter shows typescript errors like "Type annotations can only be used in TypeScript files" HOT 3
- Unexpected token eslint(ParseError) HOT 1
- Add lib "ES2020" (or a different year??) to `tsconfig.json`
- Hot reloading (automatic refreshing) from TypeScript files HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sapper-typescript-graphql-template.