mirror of
				https://github.com/SquidDev-CC/CC-Tweaked
				synced 2025-11-03 23:22:59 +00:00 
			
		
		
		
	Fix errors from the typescript bump
Looks like ./gradlew docWebsite didn't rebuild here.
This commit is contained in:
		@@ -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";
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user