Closed kogai closed 6 years ago
Modified position of bs.string attribute from a tail of definition to head of it
bs.string
declare module 'literal-type' { declare export function f(x: "a" | "b"): void; }
[@bs.module "literal-type"] external f : (~x:([`a | `b] [@bs.string])) => unit = "";
[@bs.module "literal-type"] external f : (~x:([@bs.string] [`a | `b])) => unit = "";
refmt
npm test
Modified position of
bs.string
attribute from a tail of definition to head of itSample input
Sample output(before)
Sample output(after)
PR Checklist
refmt
npm test
and updated snapshots