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:
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:
| { | |
| "$schema": "http://json-schema.org/draft-07/schema#", | |
| "title": "Claude Code Settings", | |
| "description": "Configuration schema for Claude Code settings.json files", | |
| "type": "object", | |
| "additionalProperties": false, | |
| "properties": { | |
| "$schema": { | |
| "type": "string", | |
| "description": "JSON Schema reference for this configuration file" |
| /* | |
| This CSS allows the Jetbrains/Intellij Markdown Preview to closely match the appearance of Markdown | |
| documentation as viewed on GitHub. | |
| Both the light GitHub theme and the dark theme are included here, although only the light theme works by | |
| default. The dark theme is deactivated with an as-yet-unsupported "@media (prefers-color-scheme: dark)" | |
| media query. Simply delete and/or comment out the light theme colors below, and then remove the enclosing | |
| media query from the dark theme colors, in order to use those colors instead. | |
| Color matching GitHub's syntax coloring inside code fences remains a problem. The Jetbrains preview |
| // This is just https://bottosson.github.io/posts/gamutclipping/ crudely translated to TS | |
| type Lab = { L: number; a: number; b: number }; | |
| type RGB = { r: number; g: number; b: number }; | |
| type sRGB = { r: number; g: number; b: number }; | |
| function linear_srgb_to_oklab(c: RGB): Lab { | |
| const l = 0.4122214708 * c.r + 0.5363325363 * c.g + 0.0514459929 * c.b; | |
| const m = 0.2119034982 * c.r + 0.6806995451 * c.g + 0.1073969566 * c.b; | |
| const s = 0.0883024619 * c.r + 0.2817188376 * c.g + 0.6299787005 * c.b; |
| /* Ultra lightweight Github REST Client */ | |
| // original inspiration via https://gist.github.com/v1vendi/75d5e5dad7a2d1ef3fcb48234e4528cb | |
| const token = 'github-token-here' | |
| const githubClient = generateAPI('https://api.github.com', { | |
| headers: { | |
| 'User-Agent': 'xyz', | |
| 'Authorization': `bearer ${token}` | |
| } | |
| }) |
| AWSTemplateFormatVersion: '2010-09-09' | |
| Description: | | |
| AWS CloudFormation template for Mock WebSocket API Gateway. When deploying this stack please remember to check the option: | |
| - I acknowledge that AWS CloudFormation might create IAM resources. | |
| This template can help you to solve issues like: | |
| - CloudWatch Logs role ARN must be set in account settings to enable logging | |
| - Execution failed due to configuration error: statusCode should be an integer which defined in request template | |
| - This custom domain name cannot map to WEBSOCKET protocol APIs | |
| - Error during WebSocket handshake: Unexpected response code: 500 |
| #!/bin/bash | |
| username="COGNITO_USER_NAME" | |
| password="PASSWORD" | |
| clientid="APP_CLIENT_ID" | |
| region="eu-west-1" | |
| aws_profile="AWS_CLI_PROFILE" | |
| response_json="" | |
| json_field='IdToken' |
| /* | |
| Adapted from https://github.com/sindresorhus/github-markdown-css | |
| The MIT License (MIT) | |
| Copyright (c) Sindre Sorhus <[email protected]> (sindresorhus.com) | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights |
| declare module 'react-joyride' { | |
| import * as React from "react"; | |
| export default class Joyride extends React.Component<Props, State> { | |
| constructor(props: Props); | |
| reset(restart?: boolean): void; | |
| next(): void; | |
| back(): void; | |
| addTooltip(data: Step): void; |
{ "compilerOptions": { "types": ["node"], // @types are no longer auto-discovered (see §1.6)