greglebreton 4e8a693745
Some checks failed
continuous-integration/drone/push Build is failing
add garagenum exp + maj url site projets
2023-01-08 16:50:31 +01:00

14 lines
414 B
JavaScript

const fs = require('fs');
let contents = fs.readFileSync(__dirname + '/lib/index.d.ts', 'utf8');
// Some fixups of flow-to-ts output
contents = contents.replace(
'Record<string, JSONValue>',
'{[key: string]: JSONValue}',
);
contents = contents.replace(/\$ReadOnlyMap/g, 'ReadonlyMap');
contents = contents.replace(/\$ReadOnlySet/g, 'ReadonlySet');
fs.writeFileSync(__dirname + '/lib/index.d.ts', contents);