[ app_path('Features'), ], /* * A Laravel collections of class names that should not be transformed. */ 'do_not_import' => [], /* * The package will generate TypeScript types for these Laravel collections. */ 'collections' => [ Collection::class, Illuminate\Database\Eloquent\Collection::class, ], /* * The package will transform these PHP types to TypeScript. */ 'transformers' => [ Data::class => SpatieDataTransformer::class, ], /* * The output path for the generated TypeScript file. */ 'output_file' => resource_path('js/generated/types.ts'), /* * The output directory for generated files. */ 'output_directory' => resource_path('js/generated'), /* * The auto import path prefix for TypeScript files. */ 'auto_import_prefix' => '@', /* * Should the package generate TypeScript declaration files? */ 'generate_declaration_file' => true, /* * Should the package generate a types file? */ 'generate_file' => true, /* * The default export style for TypeScript types. */ 'default_export' => 'type', /* * Should the package generate types for all nested Data classes? */ 'transform_to_type_script_recursively' => true, ];