You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use a TypeScript configuration file. I used a .js configuration file and it works to generate a model that contains dates, but I couldn't do it using a TypeScript file. Is there a solution? If not, is there another way to generate the date type from a string format date and DateTime?
the config.js File :
const primitiveTypeConstructs = (constructs) => ({
...constructs,
string: {
'date-time': () => 'Date',
'date': () => 'Date',
},
});
I want to use a TypeScript configuration file. I used a .js configuration file and it works to generate a model that contains dates, but I couldn't do it using a TypeScript file. Is there a solution? If not, is there another way to generate the date type from a string format date and DateTime?
the config.js File :
const primitiveTypeConstructs = (constructs) => ({
...constructs,
string: {
'date-time': () => 'Date',
'date': () => 'Date',
},
});
module.exports = {
primitiveTypeConstructs,
};
package.json : scripts": {
},
The text was updated successfully, but these errors were encountered: