Skip to content

TypeScript definition for ValueType not found #455

@JohannesMej

Description

@JohannesMej

When generating JavaScript/TypeScript for a very simple C# struct:

[JSExport] public struct Interface { ...

In the .d.ts file following is generated:

import './System.Collections';
import './System.Runtime';

export class Interface extends ValueType {...

ValueType is unknown to the typescript compiler:

Image

Where is the TypeScript definition for ValueType or how can I avoid the TypeScript compiler error? Obviously there is no issue during runtime.

Is this an issue or do I overlook something?

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