Skip to content

Allow to combine bs.new with more attrs #2659

Closed
@jchavarri

Description

@jchavarri

There was a conversation in Discord about some bindings to a JS library:

var grpc = require('grpc');
var hello_proto = grpc.load(PROTO_PATH).helloworld;
var client = new hello_proto.Greeter('localhost:50051',...);

Because bs.new can only be combined with bs.module (but in this case, it'd be needed with bs.send) I believe there is no way to express this in BuckleScript (or i havent' been able to find it).

cc @thangngoc89.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions