Skip to content

Duck typing interfaces? #26

@pboyer

Description

@pboyer

Something similar to this would allow us to still have custom types for users, but still have simplicity in replication.

interface Qux {
   foo : string;
}

def baz(a : Qux){
   return a.foo;
}

https://www.typescriptlang.org/docs/handbook/interfaces.html

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