Son CV dans un terminal web en Javascript!
https://terminal-cv.gregandev.fr
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
414 B
14 lines
414 B
2 years ago
|
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);
|