Skip to content

A template that includes Sapper for Svelte, TypeScript preprocessing, and a GraphQL server through TypeGraphQL

License

Notifications You must be signed in to change notification settings

Dulanjala007/sapper-typescript-graphql-template

 
 

Repository files navigation

❓ What is this?

This is a sample repo demostrating svelte typescript issue where it can't load-up custom types added via "typings" folder for *.svelte (script tags with lang="ts or typescirpt"), but with the same tsconfig, *.ts files can loadup the new types with the typescript plugin of vscode

install Official VS Code Plugin (beta) in vscode

git clone --dept=1 https://github.com/Dulanjala007/sapper-typescript-graphql-template;

cd sapper-typescript-graphql-template && npm install
  • Restart the vscode

  • Goto src/client.ts and hover over 'stores' and 'page' varibales, you should see types loaded...

  • Goto src/routes/index.svelte, and hover over 'stores' and 'page' varibales, you should see types aren't loading...

if you have any idea, please help me fix this.. thanks in advance...!

About

A template that includes Sapper for Svelte, TypeScript preprocessing, and a GraphQL server through TypeGraphQL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 40.5%
  • HTML 29.0%
  • JavaScript 27.4%
  • CSS 3.1%