New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rbxts-transformer-access

Package Overview
Dependencies
Maintainers
0
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rbxts-transformer-access

Allows you to directly index a method without calling it.

  • 1.1.2
  • latest
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

rbxts-transformer-access

Allows you to directly index a method without calling it, allowing you to easily pass it to another function, reducing the boilerplate code:

import { Players } from "@rbxts/services";

class foo {
	private onPlayer(player: Player) {}
	private onInit() {
		Players.PlayerAdded.Connect(this.onPlayer);
	}
}
import { Players } from "@rbxts/services";

const foo = {
    bar() {}
}

Players.PlayerAdded.Connect(foo.bar)

NOTES:

  • Transformer compiles a method indexation to a wrapper function, so runtime checks similar to those will fail:
foo.bar === foo.bar

FAQs

Package last updated on 03 Aug 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc