Socket
Book a DemoInstallSign in
Socket

ss-typescript

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

ss-typescript

Typescript wrapper for SocketStream 0.3

0.1.2
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

Typescript (JS) wrapper for SocketStream 0.3

Allows you to use Typescript files (.ts) in your SocketStream project.

Instructions

Add ss-typescript to your application's package.json file and then add this line to app.js:

ss.client.formatters.add(require('ss-typescript'));

Declarations

The Typescript.api module does not automatically reference the lib.d.ts file which describes javascript capabilities of the browser (see Here for details).

In order to avoid compiler errors when using things like console.log or alert you will need to include the definition files manually. The typescript.api project did this by design so as not to bloat compile jobs that didn't need all of the browser definitions (i.e. a node project).

I suggest going into the node_modules/ss-typescript/node_modules/typescript.api/decl/ and grabbing the definition files that you care about and reference them in your own files. This isn't an ideal solution, but it works around the problem.

I have a clientLibs.d.ts file which contains all of the references need by my client code including lib.d.ts

FAQs

Package last updated on 11 Jan 2014

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.