Skip to content

Releases: fumeapp/modeltyper

Date support

22 Dec 16:48
Compare
Choose a tag to compare

Added support for date (not just datetime)

Support for global namesapce

21 Oct 20:47
Compare
Choose a tag to compare
v1.0.21

🎨 readme update for global namespace

relationship overrider and nullables

02 Sep 01:11
Compare
Choose a tag to compare
  • allow relationship override with interfaces
  • allow nullable interfaces

interfaces bug

22 Aug 10:49
Compare
Choose a tag to compare

fixed bug with not finding nullable interfaces

intterfaces bug fix

22 Aug 10:26
Compare
Choose a tag to compare
  • fixed a bug where left-over interfaces were not being picked up

Fix column parsing bug

18 Aug 03:08
Compare
Choose a tag to compare
v1.0.17

🐛 fix for not properly continuing column parsing

remove the trailing break return

18 Aug 02:07
Compare
Choose a tag to compare
v1.0.16

🐛 remove that annoying extra br

Custom Interface Support

18 Aug 02:02
Compare
Choose a tag to compare

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

25 Jul 09:29
Compare
Choose a tag to compare
v1.0.14

✨ add type decimal

attempt at a point type

25 Jul 05:46
Compare
Choose a tag to compare
v1.0.13

🚧 more attempts for a point type