New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

ts-function-decorator-ls

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-function-decorator-ls

TypeScript language service plugin for handling decorators.

latest
Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

TypeScript Function Decorator Language Service Support

A TypeScript language service plugin that provides real-time transformation and IntelliSense support for function decorators in your IDE. This plugin works alongside the TypeScript compiler to provide a seamless development experience when working with function decorators.

Features

  • 🔄 Real-time Transformation: See decorator transformations as you type
  • 🎯 IntelliSense Support: Get accurate type information and autocompletion
  • 🔍 Type Checking: Real-time type checking for decorated functions
  • 🚀 Zero Configuration: Works out of the box with minimal setup

Installation

npm install -D ts-function-decorator-ls

Usage

  • Configure your IDE to use the workspace version of TypeScript:
{
  "typescript.tsdk": "node_modules/typescript/lib"
}
  • Add the language service plugin to your tsconfig.json:
{
  "compilerOptions": {
    "plugins": [
      {
        "name": "ts-function-decorator-ls"
      }
    ]
  }
}
  • The language service plugin will automatically provide support for function decorators:
// Create a decorator
const log = function (fn: Function) {
  return function (...args: any[]) {
    console.log('Function called with args:', args);
    return fn.apply(this, args);
  };
};

// Use the decorator
@log
function example(arg: string): string {
  return arg;
}

The plugin will provide:

  • Editor support for function decorators
  • Type checking for decorated functions
  • IntelliSense support for decorator options
  • Error reporting for invalid decorator usage

License

Apache-2.0

Keywords

ai

FAQs

Package last updated on 16 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts