摘要:
background.ts: // TODO: background script chrome.runtime.onInstalled.addListener(() => { console.log("onInstalled..."); }); chrome.webRequest.onBefore 阅读全文
posted @ 2023-05-22 14:39
Zhentiw
阅读(130)
评论(0)
推荐(0)
摘要:
// Imagine NavBar is an external library! export const NavBar = (props: { title: string; links: string[]; children: React.ReactNode; }) => { return <d 阅读全文
posted @ 2023-05-22 14:11
Zhentiw
阅读(15)
评论(0)
推荐(0)
摘要:
Using Omit import { ComponentProps } from 'react'; import { Equal, Expect } from '../helpers/type-utils'; export const Input = ( props: Omit<Component 阅读全文
posted @ 2023-05-22 13:58
Zhentiw
阅读(46)
评论(0)
推荐(0)
摘要:
Relevant for components that accept other React components as props. export declare interface AppProps { children?: React.ReactNode; // best, accepts 阅读全文
posted @ 2023-05-22 13:24
Zhentiw
阅读(23)
评论(0)
推荐(0)