mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-12-15 12:40:30 +00:00
d8e2161f15
Mostly useful as it moves some of our build logic out of the main project, as that's already pretty noisy!
62 lines
1.3 KiB
TypeScript
62 lines
1.3 KiB
TypeScript
declare module "*.lua" {
|
|
const contents: string;
|
|
export default contents;
|
|
}
|
|
|
|
declare module "*.nfp" {
|
|
const contents: string;
|
|
export default contents;
|
|
}
|
|
|
|
declare module "*.nft" {
|
|
const contents: string;
|
|
export default contents;
|
|
}
|
|
|
|
|
|
declare module "*.settings" {
|
|
const contents: string;
|
|
export default contents;
|
|
}
|
|
|
|
declare module "*.LICENSE" {
|
|
const contents: string;
|
|
export default contents;
|
|
}
|
|
|
|
declare module "*.dfpwm" {
|
|
const contents: string;
|
|
export default contents;
|
|
}
|
|
|
|
|
|
declare module "copycat/embed" {
|
|
import { h, Component, render, ComponentChild } from "preact";
|
|
|
|
export type Side = "up" | "down" | "left" | "right" | "front" | "back";
|
|
export type PeripheralKind = "speaker";
|
|
|
|
export { h, Component, render };
|
|
|
|
export type ComputerAccess = unknown;
|
|
|
|
export type MainProps = {
|
|
hdFont?: boolean | string,
|
|
persistId?: number,
|
|
files?: { [filename: string]: string | ArrayBuffer },
|
|
label?: string,
|
|
width?: number,
|
|
height?: number,
|
|
resolve?: (computer: ComputerAccess) => void,
|
|
peripherals?: {
|
|
[side in Side]?: PeripheralKind | null
|
|
},
|
|
}
|
|
|
|
class Computer extends Component<MainProps, unknown> {
|
|
public render(props: MainProps, state: unknown): ComponentChild;
|
|
}
|
|
|
|
export { Computer };
|
|
}
|