2021-11-27 12:27:40 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2021-12-21 22:20:45 +00:00
|
|
|
declare module "*.LICENSE" {
|
|
|
|
const contents: string;
|
|
|
|
export default contents;
|
|
|
|
}
|
|
|
|
|
|
|
|
declare module "*.dfpwm" {
|
|
|
|
const contents: string;
|
|
|
|
export default contents;
|
|
|
|
}
|
|
|
|
|
2021-11-27 12:27:40 +00:00
|
|
|
|
|
|
|
declare module "copycat/embed" {
|
|
|
|
import { h, Component, render, ComponentChild } from "preact";
|
|
|
|
|
2021-12-21 22:20:45 +00:00
|
|
|
export type Side = "up" | "down" | "left" | "right" | "front" | "back";
|
|
|
|
export type PeripheralKind = "speaker";
|
|
|
|
|
2021-11-27 12:27:40 +00:00
|
|
|
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,
|
2021-12-21 22:20:45 +00:00
|
|
|
peripherals?: {
|
|
|
|
[side in Side]?: PeripheralKind | null
|
|
|
|
},
|
2021-11-27 12:27:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class Computer extends Component<MainProps, unknown> {
|
|
|
|
public render(props: MainProps, state: unknown): ComponentChild;
|
|
|
|
}
|
|
|
|
|
|
|
|
export { Computer };
|
|
|
|
}
|