typescript 4.4.4 → 4.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/SECURITY.md +41 -0
  2. package/lib/cancellationToken.js +1 -1
  3. package/lib/cs/diagnosticMessages.generated.json +53 -61
  4. package/lib/de/diagnosticMessages.generated.json +56 -64
  5. package/lib/es/diagnosticMessages.generated.json +54 -62
  6. package/lib/fr/diagnosticMessages.generated.json +56 -64
  7. package/lib/it/diagnosticMessages.generated.json +56 -64
  8. package/lib/ja/diagnosticMessages.generated.json +56 -64
  9. package/lib/ko/diagnosticMessages.generated.json +53 -61
  10. package/lib/lib.dom.d.ts +854 -1987
  11. package/lib/lib.dom.iterable.d.ts +17 -55
  12. package/lib/lib.es2015.core.d.ts +53 -13
  13. package/lib/lib.es2015.iterable.d.ts +2 -10
  14. package/lib/lib.es2015.promise.d.ts +2 -74
  15. package/lib/lib.es2018.intl.d.ts +23 -11
  16. package/lib/lib.es2019.string.d.ts +8 -2
  17. package/lib/lib.es2020.intl.d.ts +173 -114
  18. package/lib/lib.es2020.promise.d.ts +2 -3
  19. package/lib/lib.es2021.d.ts +1 -0
  20. package/lib/lib.es2021.intl.d.ts +44 -0
  21. package/lib/lib.es2021.promise.d.ts +8 -1
  22. package/lib/lib.es5.d.ts +103 -43
  23. package/lib/lib.esnext.intl.d.ts +1 -10
  24. package/lib/lib.webworker.d.ts +241 -537
  25. package/lib/lib.webworker.iterable.d.ts +10 -37
  26. package/lib/pl/diagnosticMessages.generated.json +56 -64
  27. package/lib/protocol.d.ts +8 -0
  28. package/lib/pt-br/diagnosticMessages.generated.json +56 -64
  29. package/lib/ru/diagnosticMessages.generated.json +54 -62
  30. package/lib/tr/diagnosticMessages.generated.json +56 -64
  31. package/lib/tsc.js +7888 -5950
  32. package/lib/tsserver.js +13027 -9749
  33. package/lib/tsserverlibrary.d.ts +411 -287
  34. package/lib/tsserverlibrary.js +13002 -9724
  35. package/lib/typescript.d.ts +401 -285
  36. package/lib/typescript.js +12879 -9617
  37. package/lib/typescriptServices.d.ts +401 -285
  38. package/lib/typescriptServices.js +12879 -9617
  39. package/lib/typingsInstaller.js +9179 -6936
  40. package/lib/zh-cn/diagnosticMessages.generated.json +56 -64
  41. package/lib/zh-tw/diagnosticMessages.generated.json +56 -64
  42. package/package.json +5 -7
package/lib/protocol.d.ts CHANGED
@@ -2637,6 +2637,13 @@ declare namespace ts.server.protocol {
2637
2637
  * values, with insertion text to replace preceding `.` tokens with `?.`.
2638
2638
  */
2639
2639
  readonly includeAutomaticOptionalChainCompletions?: boolean;
2640
+ /**
2641
+ * If enabled, completions for class members (e.g. methods and properties) will include
2642
+ * a whole declaration for the member.
2643
+ * E.g., `class A { f| }` could be completed to `class A { foo(): number {} }`, instead of
2644
+ * `class A { foo }`.
2645
+ */
2646
+ readonly includeCompletionsWithClassMemberSnippets?: boolean;
2640
2647
  readonly allowIncompleteCompletions?: boolean;
2641
2648
  readonly importModuleSpecifierPreference?: "shortest" | "project-relative" | "relative" | "non-relative";
2642
2649
  /** Determines whether we import `foo/index.ts` as "foo", "foo/index", or "foo/index.js" */
@@ -2647,6 +2654,7 @@ declare namespace ts.server.protocol {
2647
2654
  readonly provideRefactorNotApplicableReason?: boolean;
2648
2655
  readonly allowRenameOfImportPath?: boolean;
2649
2656
  readonly includePackageJsonAutoImports?: "auto" | "on" | "off";
2657
+ readonly jsxAttributeCompletionStyle?: "auto" | "braces" | "none";
2650
2658
  readonly displayPartsForJSDoc?: boolean;
2651
2659
  readonly generateReturnInDocTemplate?: boolean;
2652
2660
  }