fix: add tsconfig.json, @types/chrome, fix TS errors - CI typecheck now passes
Some checks failed
CI — Test & Build / Test & Build (push) Failing after 9s

This commit is contained in:
Forge
2026-03-06 13:47:24 +08:00
parent 7713fb1b1d
commit 050e291f73
6 changed files with 51 additions and 2 deletions

View File

@@ -162,7 +162,7 @@ function OptionsPage() {
const apiKeyRef = useRef<HTMLInputElement>(null);
useEffect(() => {
chrome.storage.local.get(['provider', 'apiKey', 'model'], (result) => {
chrome.storage.local.get(["provider", "apiKey", "model"], (result: Record<string, string>) => {
if (result.provider) setProvider(result.provider);
if (result.apiKey) setApiKey(result.apiKey);
if (result.model) setModel(result.model);

View File

@@ -7,7 +7,7 @@ function Popup() {
const [model, setModel] = useState('');
useEffect(() => {
chrome.storage.local.get(['provider', 'apiKey', 'model'], (result) => {
chrome.storage.local.get(["provider", "apiKey", "model"], (result: Record<string, string>) => {
if (result.apiKey) {
setConfigured(true);
setProvider(result.provider || 'openai');