mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-12 10:20:28 +00:00
Fix errors from the typescript bump
Looks like ./gradlew docWebsite didn't rebuild here.
This commit is contained in:
parent
5dd6b9a637
commit
6ac09742fc
1372
package-lock.json
generated
1372
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -20,7 +20,7 @@
|
||||
"react": "^18.1.0",
|
||||
"rehype-highlight": "^6.0.0",
|
||||
"rehype-react": "^7.1.1",
|
||||
"rehype": "^13.0.1",
|
||||
"rehype": "^12.0.0",
|
||||
"requirejs": "^2.3.6",
|
||||
"rollup": "^3.19.1",
|
||||
"ts-node": "^10.8.0",
|
||||
|
@ -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>,
|
||||
|
@ -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";
|
||||
|
@ -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";
|
||||
|
@ -20,7 +20,7 @@
|
||||
"noUnusedParameters": true,
|
||||
"noImplicitReturns": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"importsNotUsedAsValues": "error",
|
||||
"verbatimModuleSyntax": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
|
||||
// Needed for some of our internal stuff.
|
||||
|
Loading…
Reference in New Issue
Block a user