2.1.0 • Published 9 months ago

laravel-codegen v2.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

Laravel Codegen

Install

yarn add laravel-codegen

Create a laravel-codegen.ts in the root of your project with the following syntax

const config = {
  apiUrl: 'https://someurl.fetch/api/types', // Must use
  path: '/', //defaults to root folder
  token: '', //If bearer token to api 
};

module.exports = config;

Then in your package json add the following script command

"laravel-codegen": "laravel-codegen"

The types will then be generated in the path from your config whenever you run the following command

yarn laravel-codegen

#DONT FORGET - reference the types somewhere in your repo f.ex. index.ts or similar Then you can import your types anywhere in your project

/// <reference path="./types/laravel-types.d.ts" />
2.1.0

9 months ago

2.0.2

12 months ago

2.0.1

12 months ago

2.0.0

12 months ago

1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago