Skip to content
Snippets Groups Projects
Commit 3856524c authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt :koala:
Browse files

feat: add date and time of last type update

parent 8cd743de
No related branches found
No related tags found
No related merge requests found
......@@ -4,11 +4,12 @@ import { writeFile } from 'fs/promises'
import openapiTS from 'openapi-typescript'
function convertOpenapiToTypescript(inputFilePath) {
const time = new Date().toISOString().split('T').join(' ')
return openapiTS(inputFilePath, {
commentHeader: `
/* eslint-disable */
/*
* This file was auto-generated by \`make update-types\`.
* This file was auto-generated by \`make update-types\` at ${time}.
* DO NOT make changes to this file.
*/
`.trimStart(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment