Skip to content

Member functions can be marked optional #13

@stheophil

Description

@stheophil

See SJsClass ctor and look for // TODO: Support optional member functions

interface Test {
    method?(a: number) : string;
}

Implementation should check for existence of 'method' property, call it if it exists, return undefined otherwise. Return value is de facto string | undefined

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