Skip to content

Commit 4a4a8c7

Browse files
committed
Change tabs in README to spaces
1 parent 87999be commit 4a4a8c7

File tree

1 file changed

+52
-52
lines changed

1 file changed

+52
-52
lines changed

README.md

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -414,17 +414,17 @@ Describes the shape of the parse result that is returned when the given hostname
414414

415415
```ts
416416
type ParseResultInvalid = {
417-
type: ParseResultType.INVALID;
418-
hostname: string | typeof NO_HOSTNAME;
419-
errors: Array<ValidationError>;
417+
type: ParseResultType.INVALID;
418+
hostname: string | typeof NO_HOSTNAME;
419+
errors: Array<ValidationError>;
420420
};
421421

422422
// Example
423423

424424
{
425-
type: "INVALID",
426-
hostname: ".com",
427-
errors: [...]
425+
type: "INVALID",
426+
hostname: ".com",
427+
errors: [...]
428428
}
429429
```
430430

@@ -436,17 +436,17 @@ Describes the shape of a validation error as returned by [`parseDomain`](#api-js
436436

437437
```ts
438438
type ValidationError = {
439-
type: ValidationErrorType;
440-
message: string;
441-
column: number;
439+
type: ValidationErrorType;
440+
message: string;
441+
column: number;
442442
};
443443

444444
// Example
445445

446446
{
447-
type: "LABEL_MIN_LENGTH",
448-
message: `Label "" is too short. Label is 0 octets long but should be at least 1.`,
449-
column: 1,
447+
type: "LABEL_MIN_LENGTH",
448+
message: `Label "" is too short. Label is 0 octets long but should be at least 1.`,
449+
column: 1,
450450
}
451451
```
452452

@@ -481,17 +481,17 @@ This type describes the shape of the parse result that is returned when the give
481481

482482
```ts
483483
type ParseResultIp = {
484-
type: ParseResultType.Ip;
485-
hostname: string;
486-
ipVersion: 4 | 6;
484+
type: ParseResultType.Ip;
485+
hostname: string;
486+
ipVersion: 4 | 6;
487487
};
488488

489489
// Example
490490

491491
{
492-
type: "IP",
493-
hostname: "192.168.0.1",
494-
ipVersion: 4
492+
type: "IP",
493+
hostname: "192.168.0.1",
494+
ipVersion: 4
495495
}
496496
```
497497

@@ -516,17 +516,17 @@ This type describes the shape of the parse result that is returned when the give
516516

517517
```ts
518518
type ParseResultReserved = {
519-
type: ParseResultType.Reserved;
520-
hostname: string;
521-
labels: Array<string>;
519+
type: ParseResultType.Reserved;
520+
hostname: string;
521+
labels: Array<string>;
522522
};
523523

524524
// Example
525525

526526
{
527-
type: "RESERVED",
528-
hostname: "pecorino.local",
529-
labels: ["pecorino", "local"]
527+
type: "RESERVED",
528+
hostname: "pecorino.local",
529+
labels: ["pecorino", "local"]
530530
}
531531
```
532532

@@ -540,17 +540,17 @@ Describes the shape of the parse result that is returned when the given hostname
540540

541541
```ts
542542
type ParseResultNotListed = {
543-
type: ParseResultType.NotListed;
544-
hostname: string;
545-
labels: Array<string>;
543+
type: ParseResultType.NotListed;
544+
hostname: string;
545+
labels: Array<string>;
546546
};
547547

548548
// Example
549549

550550
{
551-
type: "NOT_LISTED",
552-
hostname: "this.is.not-listed",
553-
labels: ["this", "is", "not-listed"]
551+
type: "NOT_LISTED",
552+
hostname: "this.is.not-listed",
553+
labels: ["this", "is", "not-listed"]
554554
}
555555
```
556556

@@ -562,33 +562,33 @@ Describes the shape of the parse result that is returned when the given hostname
562562

563563
```ts
564564
type ParseResultListed = {
565-
type: ParseResultType.Listed;
566-
hostname: string;
567-
labels: Array<string>;
568-
subDomains: Array<string>;
569-
domain: string | undefined;
570-
topLevelDomains: Array<string>;
571-
icann: {
572-
subDomains: Array<string>;
573-
domain: string | undefined;
574-
topLevelDomains: Array<string>;
575-
};
565+
type: ParseResultType.Listed;
566+
hostname: string;
567+
labels: Array<string>;
568+
subDomains: Array<string>;
569+
domain: string | undefined;
570+
topLevelDomains: Array<string>;
571+
icann: {
572+
subDomains: Array<string>;
573+
domain: string | undefined;
574+
topLevelDomains: Array<string>;
575+
};
576576
};
577577

578578
// Example
579579

580580
{
581-
type: "LISTED",
582-
hostname: "parse-domain.github.io",
583-
labels: ["parse-domain", "github", "io"]
584-
subDomains: [],
585-
domain: "parse-domain",
586-
topLevelDomains: ["github", "io"],
587-
icann: {
588-
subDomains: ["parse-domain"],
589-
domain: "github",
590-
topLevelDomains: ["io"]
591-
}
581+
type: "LISTED",
582+
hostname: "parse-domain.github.io",
583+
labels: ["parse-domain", "github", "io"]
584+
subDomains: [],
585+
domain: "parse-domain",
586+
topLevelDomains: ["github", "io"],
587+
icann: {
588+
subDomains: ["parse-domain"],
589+
domain: "github",
590+
topLevelDomains: ["io"]
591+
}
592592
}
593593
```
594594

0 commit comments

Comments
 (0)