Netcentric / component-loader

Apache License 2.0
1 stars 1 forks source link

Support for TypeScript #6

Open binrohan opened 2 months ago

binrohan commented 2 months ago

Expected Behaviour

This is should add the class as component. It is not working because of ts.

import {register} from '@nc/component-loader';

class testScript {

    constructor() {
        this.init();
    }

    public init(): void {
        window.alert('Hello World');
    }
}

register({testScript});
easingthemes commented 1 month ago

What error do you receive. It works fine for this demo: https://playcode.io/1942178

Screenshot 2024-07-18 at 16 25 40