1 parent
ae4d85ab3c
commit
520dbcd36e
1 file changed
+16
@@ -0,0 +1,16 @@
|
||||
#### Support TypeScript 4.9 (#13764, #13783 by @sosukesuzuki)
|
||||
|
||||
Support [TypeScript 4.9](https://devblogs.microsoft.com/typescript/announcing-typescript-4-9) features!
|
||||
|
||||
##### [`satisfies` operator](https://devblogs.microsoft.com/typescript/announcing-typescript-4-9-beta/#the-satisfies-operator)
|
||||
|
||||
Supported by only `babel-ts` parser.
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
```tsx
|
||||
const palette = {
|
||||
red: [255, 0, 0],
|
||||
green: "#00ff00",
|
||||
blue: [0, 0, 255]
|
||||
} satisfies Record<Colors, string | RGB>;
|
||||
```
|
||||
Reference in new issue
Block a user