2.1.0 • Published 6 years ago

@juliankrieger/chat-app-typings v2.1.0

Weekly downloads
21
License
ISC
Repository
gitlab
Last release
6 years ago

Typings for https://gitlab.com/wehrloserstock/chat-app

How I got this to work: Step 1: Create a folder named "src"

Step 2: Add "index.ts" to "src"

Step 3: Define all typings in a folder "src/typings"

Step 4: Export those in a namespace, or none at all. Typescript modules seem to be an old thing. They were local modules, and namespaces were modules able to be exported to global namespace. Just use namespace.

Step 5: Re-export those in ìndex.ts

Step 6: For this to work with BOTH NodeJS, which uses CommonJS as it's module system, AND React, which uses ES6 Style import and export, tell tsc in tsconfig.json that the module system should be CommonJS, and compile for target ES5. IMPORTANT: The "not-NodeJS" environment NEEDS both the flags "allowSyntheticDefaultImports": true and esModuleInterop.

Step 6: Tell NPM to build the files and put them into a dist folder

Step 7: Tell NPM that the types are in dist/index.d.ts and the main file is dist/index.js

2.1.0

6 years ago

2.0.0

6 years ago

1.4.1

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.4

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.9

6 years ago

1.1.8

6 years ago

1.1.7

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago