Skip to content

Typescript Support #21

@Shumuu

Description

@Shumuu

Hello fellow developers!

Is there any Typescript support ? I tried to implement it myself but failed :(

I tried following this: https://webpack.js.org/guides/typescript/ but it didn't work and spew a bunch of errors out.

ERROR in ./app/shortcode.ts 11:75
Module parse failed: Unexpected token (11:75)
File was processed with these loaders:
 * ./node_modules/ts-loader/index.js
You may need an additional loader to handle the result of these loaders.
|     for (var i = 0; i < shortcode_containers.length; ++i) {
|         var objectId = shortcode_containers[i].getAttribute('data-object-id');
>         ReactDOM.render(wpObject, (_a = { window: window }, _a[objectId] = , _a) /  > , shortcode_containers[i]);
|     }
| });

Hope someone can help me :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions