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

construct3

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

construct3

TypeScript Definitions for Construct 3's Scripting API

latest
Source
npmnpm
Version
1.0.5
Version published
Weekly downloads
8
Maintainers
1
Weekly downloads
 
Created
Source

Type Defs for Construct 3 (Unofficial)

Most type definitions and documentation are taken from the Official Scripting Reference, some types and documentation are custom written where needed.

Note: This currently does not have Behaviors or the SDK typed out. That is being worked on.

Usage

This module exports it's types as a module, meaning you have to import all the types you want to use.

import { IRuntime, runOnStartup } from "construct3";

let runtime: IRuntime;

runOnStartup((r) => {
  runtime = r;
});

It should be noted that C3.Event is renamed to C3Event

import { C3Event } from "construct3";

Contributing

If there are errors in these types, or you want to add types for an addon, please open a github issue or pull request. When contributing, please run the prettier formatter with yarn lint

FAQs

Package last updated on 03 Oct 2021

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