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
Some checks failed
CI — Test & Build / Test & Build (push) Failing after 9s
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user