Skip to content

chore: remove @ts-check comments #370

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/webpack/webpack.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import HtmlWebpackPlugin from "html-webpack-plugin";
import MiniCssExtractPlugin from "mini-css-extract-plugin";
import path from "node:path";
import preprocess from "svelte-preprocess";
import { sveltePreprocess } from "svelte-preprocess";

/** @type {"development" | "production"} */
const NODE_ENV =
Expand Down Expand Up @@ -32,7 +32,7 @@ export default {
loader: "svelte-loader",
options: {
hotReload: !PROD,
preprocess: preprocess(),
preprocess: sveltePreprocess(),
compilerOptions: { dev: !PROD },
},
},
Expand Down
2 changes: 0 additions & 2 deletions src/Highlight.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<script>
// @ts-check

/** @type {import("./languages").LanguageType<string>} */
export let language;

Expand Down
1 change: 0 additions & 1 deletion src/HighlightAuto.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<script>
// @ts-check
import LangTag from "./LangTag.svelte";

/** @type {any} */
Expand Down
1 change: 0 additions & 1 deletion src/HighlightSvelte.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<script>
// @ts-check
import LangTag from "./LangTag.svelte";

/** @type {any} */
Expand Down
2 changes: 0 additions & 2 deletions src/LangTag.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<script>
// @ts-check

/** @type {any} */
export let code;

Expand Down
2 changes: 0 additions & 2 deletions src/LineNumbers.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<script>
// @ts-check

/** @type {string} */
export let highlighted;

Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "astro/tsconfigs/strictest",
"compilerOptions": {
"baseUrl": ".",
"checkJs": true,
"ignoreDeprecations": "5.0",
"allowSyntheticDefaultImports": true,
"resolveJsonModule": true,
Expand Down
2 changes: 0 additions & 2 deletions www/components/CodeSnippet.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<script>
// @ts-check

export let code = "";

import { CodeSnippet } from "carbon-components-svelte";
Expand Down
2 changes: 0 additions & 2 deletions www/components/Footer.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<script>
// @ts-check

import { PKG_HOMEPAGE, PKG_NAME, TS } from "@www/constants";
import { Grid, Row, Column, Link } from "carbon-components-svelte";
</script>
Expand Down
2 changes: 0 additions & 2 deletions www/components/LineNumbers/Basic.svelte
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<script>
import { THEME_NAME, THEME_MODULE_NAME } from "@www/constants";

// @ts-check

export let snippet = "<LineNumbers {highlighted} />";

import { HighlightSvelte, LineNumbers } from "svelte-highlight";
Expand Down
1 change: 0 additions & 1 deletion www/components/LineNumbers/HideBorder.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<script>
// @ts-check
import Basic from "./Basic.svelte";

const snippet = "<LineNumbers {highlighted} hideBorder />";
Expand Down
1 change: 0 additions & 1 deletion www/components/LineNumbers/HighlightedLines.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<script>
// @ts-check
import Basic from "./Basic.svelte";

const snippet =
Expand Down
2 changes: 0 additions & 2 deletions www/components/LineNumbers/HighlightedLinesCustomColor.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<script>
// @ts-check

import Basic from "./Basic.svelte";

const snippet = `<LineNumbers
Expand Down
1 change: 0 additions & 1 deletion www/components/LineNumbers/StartingLineNumber.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<script>
// @ts-check
import Basic from "./Basic.svelte";

const snippet = "<LineNumbers {highlighted} startingLineNumber={42} />";
Expand Down
1 change: 0 additions & 1 deletion www/components/LineNumbers/StyleProps.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<script>
// @ts-check
import Basic from "./Basic.svelte";

const snippet = `<LineNumbers
Expand Down
1 change: 0 additions & 1 deletion www/components/LineNumbers/WrapLines.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<script>
// @ts-check
import Basic from "./Basic.svelte";

const snippet = "<LineNumbers {highlighted} wrapLines />";
Expand Down
1 change: 0 additions & 1 deletion www/components/ListSearch.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<script>
// @ts-check
import { PKG_HLJS_VERSION } from "@www/constants";

/** @type {{ name: string; moduleName: string; }[]} */
Expand Down
2 changes: 0 additions & 2 deletions www/components/ScopedLanguage.svelte
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<script>
import { THEME_MODULE_NAME } from "@www/constants";

// @ts-check

/** @type {string} */
export let name;

Expand Down
2 changes: 0 additions & 2 deletions www/components/ScopedStyle.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<script>
// @ts-check

export let name = "";
export let moduleName = "";
export let useInjectedStyles = true;
Expand Down
2 changes: 0 additions & 2 deletions www/components/ScopedStyleAuto.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<script>
// @ts-check

export let name = "";
export let moduleName = "";

Expand Down
2 changes: 0 additions & 2 deletions www/components/ScopedStyleSvelte.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<script>
// @ts-check

export let name = "";
export let moduleName = "";

Expand Down
2 changes: 0 additions & 2 deletions www/components/globals/Header.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<script>
// @ts-check

/** @type {string} */
export let title;

Expand Down
2 changes: 0 additions & 2 deletions www/components/globals/Index.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<script>
// @ts-check

import { THEME_NAME, PKG_NAME, THEME_MODULE_NAME } from "@www/constants";
import {
Row,
Expand Down
2 changes: 0 additions & 2 deletions www/components/globals/Languages.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<script>
// @ts-check

import {
Row,
Column,
Expand Down
2 changes: 0 additions & 2 deletions www/components/globals/Styles.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<script>
// @ts-check

import {
Row,
Column,
Expand Down