Skip to content

Commit

Permalink
v2.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
aperron committed Dec 24, 2020
1 parent e7cb29b commit 7025957
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const config = {
output: './sts/',
enum: true,
nested: false,
type: (fieldType) => { if(fieldType == 'datetime') return 'string'},
type: (fieldType) => { if(fieldType == 'datetime') return 'string' },
interfaceName: (name) => `X${name}`,
enumName: (name, interfaceName) => `Enum${interfaceName}${name}`,
excludeField: (interfaceName, fieldName) => fieldName === 'hide_field',
Expand All @@ -84,7 +84,7 @@ module.exports = config;
package.json
```json
{
"//" : "..."
"//" : "...",

"scripts": {
"sts": "sts -c .stsconfig"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "strapi-to-typescript",
"version": "2.0.2",
"version": "2.0.3",
"description": "Convert the strapi models to typescript interfaces.",
"main": "index.js",
"bin": {
Expand Down

0 comments on commit 7025957

Please sign in to comment.