# TypeScript support — language server and type checking tools.
{
  config,
  lib,
  pkgs,
  ...
}:
with lib; let
  cfg = config.coding.languages.typescript;
in {
  options.coding.languages.typescript.enable = mkEnableOption "TypeScript support";

  config = mkIf cfg.enable {
    home.packages = with pkgs; [
      typescript
      typescript-language-server
    ];
  };
}
