Releases: fumeapp/modeltyper
Releases · fumeapp/modeltyper
Date support
Added support for date (not just datetime)
Support for global namesapce
v1.0.21 🎨 readme update for global namespace
relationship overrider and nullables
- allow relationship override with interfaces
- allow nullable interfaces
interfaces bug
fixed bug with not finding nullable interfaces
intterfaces bug fix
- fixed a bug where left-over interfaces were not being picked up
Fix column parsing bug
v1.0.17 🐛 fix for not properly continuing column parsing
remove the trailing break return
v1.0.16 🐛 remove that annoying extra br
Custom Interface Support
Custom Interfaces
If you have custom interfaces you are using for your models you can specify them in a reserved interfaces
array
For example for a custom Point
interface in a Location
model you can put this in the model
public array $interfaces = [
'coordinate' => [
'name' => 'Point',
'import' => "@/types/api",
],
];
And it should generate:
import { Point } from '@/types/api'
export interface Location {
// columns
coordinate: Point
}
This will override all columns or mutators
decimal support
v1.0.14 ✨ add type decimal
attempt at a point type
v1.0.13 🚧 more attempts for a point type