This example was scaffolded from the official Svelte TypeScript template.
Add the following fields in you tsconfig.json
for autocompleting Carbon Icons:
{
"extends": "@tsconfig/svelte/tsconfig.json",
"include": ["src/**/*"],
+ "compilerOptions": {
+ "importsNotUsedAsValues": "remove",
+ "types": ["svelte", "carbon-icons-svelte"]
+ },
"exclude": ["node_modules/*", "public/*"]
}
Assuming that you use VSCode and have the offical Svelte VSCode extension installed, you should experience some level of code completion for module imports and props.
Runs the app in development mode.
Builds the app in production mode.
Serves the app locally. Run yarn build
before yarn start
.
Runs svelte-check
.