Skip to content

Commit 586c954

Browse files
chore: remove type aliases
1 parent 0cd048d commit 586c954

File tree

38 files changed

+0
-213
lines changed

38 files changed

+0
-213
lines changed

src/Crawl/CrawlStartParams.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,6 @@
1414
* Initiate comprehensive website crawling with sitemap support.
1515
* Supports both AI extraction mode and markdown conversion mode.
1616
* Returns a task ID for async processing.
17-
*
18-
* @phpstan-type start_params = array{
19-
* url: string,
20-
* depth?: int,
21-
* extractionMode?: bool,
22-
* maxPages?: int,
23-
* prompt?: string|null,
24-
* renderHeavyJs?: bool,
25-
* rules?: Rules,
26-
* schema?: mixed,
27-
* sitemap?: bool,
28-
* }
2917
*/
3018
final class CrawlStartParams implements BaseModel
3119
{

src/Crawl/CrawlStartParams/Rules.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
use Scrapegraphai\Core\Contracts\BaseModel;
1010
use Scrapegraphai\Core\Conversion\ListOf;
1111

12-
/**
13-
* @phpstan-type rules_alias = array{exclude?: list<string>, sameDomain?: bool}
14-
*/
1512
final class Rules implements BaseModel
1613
{
1714
use SdkModel;

src/Feedback/FeedbackSubmitParams.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111

1212
/**
1313
* Submit feedback for a specific request.
14-
*
15-
* @phpstan-type submit_params = array{
16-
* rating: int, requestID: string, feedbackText?: string|null
17-
* }
1814
*/
1915
final class FeedbackSubmitParams implements BaseModel
2016
{

src/GenerateSchema/GenerateSchemaCreateParams.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
/**
1313
* Generate or modify JSON schemas based on natural language descriptions.
1414
* Can create new schemas or extend existing ones.
15-
*
16-
* @phpstan-type create_params = array{userPrompt: string, existingSchema?: mixed}
1715
*/
1816
final class GenerateSchemaCreateParams implements BaseModel
1917
{

src/Markdownify/CompletedMarkdownify.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,6 @@
99
use Scrapegraphai\Core\Contracts\BaseModel;
1010
use Scrapegraphai\Markdownify\CompletedMarkdownify\Status;
1111

12-
/**
13-
* @phpstan-type completed_markdownify_alias = array{
14-
* error?: string,
15-
* requestID?: string,
16-
* result?: string|null,
17-
* status?: Status::*,
18-
* websiteURL?: string,
19-
* }
20-
*/
2112
final class CompletedMarkdownify implements BaseModel
2213
{
2314
use SdkModel;

src/Markdownify/CompletedMarkdownify/Status.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
use Scrapegraphai\Core\Concerns\SdkEnum;
88
use Scrapegraphai\Core\Conversion\Contracts\ConverterSource;
99

10-
/**
11-
* @phpstan-type status_alias = Status::*
12-
*/
1310
final class Status implements ConverterSource
1411
{
1512
use SdkEnum;

src/Markdownify/MarkdownifyConvertParams.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@
1313

1414
/**
1515
* Convert web page content to clean Markdown format.
16-
*
17-
* @phpstan-type convert_params = array{
18-
* websiteURL: string, headers?: array<string, string>, steps?: list<string>
19-
* }
2016
*/
2117
final class MarkdownifyConvertParams implements BaseModel
2218
{

src/Responses/Crawl/CrawlGetResultsResponse.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,6 @@
1010
use Scrapegraphai\Responses\Crawl\CrawlGetResultsResponse\Result;
1111
use Scrapegraphai\Responses\Crawl\CrawlGetResultsResponse\Status;
1212

13-
/**
14-
* @phpstan-type crawl_get_results_response_alias = array{
15-
* result?: mixed|string,
16-
* status?: Status::*,
17-
* taskID?: string,
18-
* traceback?: string|null,
19-
* }
20-
*/
2113
final class CrawlGetResultsResponse implements BaseModel
2214
{
2315
use SdkModel;

src/Responses/Crawl/CrawlGetResultsResponse/Result.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
/**
1212
* Successful crawl results.
13-
*
14-
* @phpstan-type result_alias = mixed|string
1513
*/
1614
final class Result implements ConverterSource
1715
{

src/Responses/Crawl/CrawlGetResultsResponse/Status.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
use Scrapegraphai\Core\Concerns\SdkEnum;
88
use Scrapegraphai\Core\Conversion\Contracts\ConverterSource;
99

10-
/**
11-
* @phpstan-type status_alias = Status::*
12-
*/
1310
final class Status implements ConverterSource
1411
{
1512
use SdkEnum;

0 commit comments

Comments
 (0)