The following seems to be the right structure/nesting for it but I still get [] for results in TypeScript buffers:

(use-package eglot
  :custom
  (eglot-workspace-configuration
   '((:typescript-language-server
      . (:typescript (:inlayHints
                      (:includeInlayEnumMemberValueHints t
                       :includeInlayFunctionLikeReturnTypeHints t
                       :includeInlayFunctionParameterTypeHints t
                       :includeInlayParameterNameHints "all"
                       :includeInlayParameterNameHintsWhenArgumentMatchesName t
                       :includeInlayPropertyDeclarationTypeHints t
                       :includeInlayVariableTypeHints t
                       :includeInlayVariableTypeHintsWhenTypeMatchesName t))))))
  :hook
  (eglot-managed-mode . eglot-inlay-hints-mode)
  (eglot-managed-mode . me/flymake-eslint-enable-maybe)
  (typescript-ts-base-mode . eglot-ensure))

My site is free of ads and trackers. Was this post helpful to you? Why not BuyMeACoffee