1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-11-08 17:33:01 +00:00

Fix errors from the typescript bump

Looks like ./gradlew docWebsite didn't rebuild here.
This commit is contained in:
Jonathan Coates
2023-08-31 20:49:53 +01:00
parent 5dd6b9a637
commit 6ac09742fc
6 changed files with 233 additions and 1151 deletions

1372
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -20,7 +20,7 @@
"react": "^18.1.0", "react": "^18.1.0",
"rehype-highlight": "^6.0.0", "rehype-highlight": "^6.0.0",
"rehype-react": "^7.1.1", "rehype-react": "^7.1.1",
"rehype": "^13.0.1", "rehype": "^12.0.0",
"requirejs": "^2.3.6", "requirejs": "^2.3.6",
"rollup": "^3.19.1", "rollup": "^3.19.1",
"ts-node": "^10.8.0", "ts-node": "^10.8.0",

View File

@@ -2,7 +2,7 @@
// //
// SPDX-License-Identifier: MPL-2.0 // SPDX-License-Identifier: MPL-2.0
import { createElement as h, useContext, createContext, FunctionComponent, ReactNode } from "react"; import { createElement as h, useContext, createContext, type FunctionComponent, type ReactNode } from "react";
export type DataExport = { export type DataExport = {
readonly itemNames: Record<string, string>, readonly itemNames: Record<string, string>,

View File

@@ -2,7 +2,7 @@
// //
// SPDX-License-Identifier: MPL-2.0 // SPDX-License-Identifier: MPL-2.0
import { render, h, Component, Computer, PeripheralKind } from "copycat/embed"; import { render, h, Component, Computer, type PeripheralKind } from "copycat/embed";
import type { ComponentChild } from "preact"; import type { ComponentChild } from "preact";
import settingsFile from "./mount/.settings"; import settingsFile from "./mount/.settings";

View File

@@ -11,7 +11,7 @@
* Yes, this would be so much nicer with next.js. * Yes, this would be so much nicer with next.js.
*/ */
import * as fs from "fs/promises"; import * as fs from "fs/promises";
import glob from "glob"; import { glob } from "glob";
import * as path from "path"; import * as path from "path";
import { createElement, createElement as h, Fragment } from 'react'; import { createElement, createElement as h, Fragment } from 'react';
import { renderToStaticMarkup } from "react-dom/server"; import { renderToStaticMarkup } from "react-dom/server";
@@ -22,7 +22,7 @@ import { unified } from 'unified';
// Our components // Our components
import Recipe from "./components/Recipe.js"; import Recipe from "./components/Recipe.js";
import { noChildren } from "./components/support.js"; import { noChildren } from "./components/support.js";
import { DataExport, WithExport } from "./components/WithExport.js"; import { type DataExport, WithExport } from "./components/WithExport.js";
(async () => { (async () => {
const base = "build/illuaminate"; const base = "build/illuaminate";

View File

@@ -20,7 +20,7 @@
"noUnusedParameters": true, "noUnusedParameters": true,
"noImplicitReturns": true, "noImplicitReturns": true,
"noFallthroughCasesInSwitch": true, "noFallthroughCasesInSwitch": true,
"importsNotUsedAsValues": "error", "verbatimModuleSyntax": true,
"forceConsistentCasingInFileNames": true, "forceConsistentCasingInFileNames": true,
// Needed for some of our internal stuff. // Needed for some of our internal stuff.