TypeScript 6.0 is a transition release bridging 5.9 and the forthcoming 7.0 (a native Go port). Most changes are new defaults and deprecations preparing for 7.0. Here is what you need to do:
Most projects need these tsconfig changes:
| @media -moz-pref('browser.nova.enabled') { | |
| :root { | |
| --chrome-window-gap: 0px !important; | |
| --chrome-block-radius: 0px !important; | |
| --chrome-content-separator-color: unset !important; | |
| } | |
| .tab-background { | |
| border-radius: 8px !important; | |
| } |
TypeScript 6.0 is a transition release bridging 5.9 and the forthcoming 7.0 (a native Go port). Most changes are new defaults and deprecations preparing for 7.0. Here is what you need to do:
Most projects need these tsconfig changes:
| (() => { | |
| function formatDate(date = new Date()) { | |
| return date.toISOString().split("T")[0]; | |
| } | |
| function escapeMarkdown(text) { | |
| return text | |
| .replace(/\\/g, "\\\\") | |
| .replace(/\*/g, "\\*") | |
| .replace(/_/g, "\\_") |
| const LIMIT = 30; | |
| const endStringWithThreeDots = (str) => { | |
| if (str.length <= LIMIT) { | |
| return str; | |
| } else { | |
| const updatedString = str.slice(0, LIMIT - 3) + "..."; | |
| return updatedString; | |
| } | |
| }; |
| const getElementsByText = (text, parent) => { | |
| if (!text) return [] | |
| const xpath = `//*[text()='${text}']` | |
| const xpathResult = document.evaluate( | |
| xpath, | |
| parent || document, | |
| null, | |
| XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, | |
| null | |
| ) |
| const newGuid = Date.now().toString(36) + Math.random().toString(36).substring(2); | |
| export default newGuid; |
{ "compilerOptions": { "types": ["node"], // @types are no longer auto-discovered (see §1.6)