MLJ - user defined models - supporting weights - issue?

I think you need to pass in the weights as a positional argument:

machine(model, X, y, w)

I thought there used to be examples like that in the documentation, but I can’t find them at the moment.