add check-types command and fix type errors

This commit is contained in:
Paul Miller
2023-07-28 11:00:00 -05:00
parent 3f8eafa93c
commit 3868b3f0a0
14 changed files with 1092 additions and 972 deletions

View File

@@ -12,7 +12,7 @@ export const useCopy = ({ copiedTimeout = 2000 }: UseCopyProps = {}): [
copied: Accessor<boolean>
] => {
const [copied, setCopied] = createSignal(false);
let timeout: number;
let timeout: ReturnType<typeof setTimeout> | undefined;
const copy: CopyFn = async (text) => {
if (Capacitor.isNativePlatform()) {
await Clipboard.write({