1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-08-31 17:47:56 +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

View File

@@ -2,7 +2,7 @@
//
// 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 = {
readonly itemNames: Record<string, string>,

View File

@@ -2,7 +2,7 @@
//
// 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 settingsFile from "./mount/.settings";

View File

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

View File

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