fix dependencies, edit rollup and ts config, switch jsx runtime, use pnpm lockfiles

This commit is contained in:
AAGaming 2022-05-20 18:13:31 -04:00
commit 569f8b8707
No known key found for this signature in database
GPG key ID: 3050166AC290BDF5
7 changed files with 884 additions and 2513 deletions

View file

@ -5,9 +5,10 @@ import {
MenuItem,
ServerAPI,
showModal,
staticClasses,
staticClasses
} from "decky-frontend-lib";
import { VFC } from "react";
import * as React from "react"; // JSX needs this, since React < 17.0.0 doesn't support the JSX runtime.
import { FaShip } from "react-icons/fa";
// interface AddMethodArgs {
@ -51,7 +52,7 @@ const Content: VFC<{ serverAPI: ServerAPI }> = ({}) => {
);
};
export default definePlugin((serverApi) => {
export default definePlugin((serverApi: ServerAPI) => {
return {
title: <div className={staticClasses.Title}>Example Plugin</div>,
content: <Content serverAPI={serverApi} />,