Giter Site home page Giter Site logo

serpek / typescript-webworker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zlepper/typescript-webworker

0.0 0.0 0.0 4 KB

An example repository for using typescript and webworkers with webpack

JavaScript 61.29% TypeScript 27.72% HTML 10.99%

typescript-webworker's Introduction

This repository contains an example of how to get typescript working with webworkers. Working in this case being without compile errors, and so messages can be passed back and forth. Webpack is used for bundling worker files, so they get transpiled down to native javascript.

The 3 important files can be found in the src directory.

The first one is index.ts, which contains the main application code, and where the webworker is started from.

Next there is test.worker.ts which is the actual webworker. Other than the available subset of the browser apis available, there is nothing special about this file.

Last we have the file-loader.d.ts-file which contains a declaration for the webpack file-loader, ensuring that typescript infers the correct types when it's used.

typescript-webworker's People

Contributors

zlepper avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.