Skip to content

Support for TypeScript  #6

@binrohan

Description

@binrohan

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});

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