Skip to content

Commit 09cb336

Browse files
🤖 dprint fmt
1 parent 3a8a601 commit 09cb336

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

types/spf-parse/index.d.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ export = spfParse;
22

33
declare namespace spfParse {
44
/** Qualifer prefix characters */
5-
type Prefix = '+' | '-' | '~' | '?' | 'v';
5+
type Prefix = "+" | "-" | "~" | "?" | "v";
66

77
/** Prefix descriptions */
88
interface PrefixDescriptions {
9-
'+': 'Pass';
10-
'-': 'Fail';
11-
'~': 'SoftFail';
12-
'?': 'Neutral';
9+
"+": "Pass";
10+
"-": "Fail";
11+
"~": "SoftFail";
12+
"?": "Neutral";
1313
v?: string;
1414
}
1515

@@ -37,7 +37,7 @@ declare namespace spfParse {
3737
message: string;
3838

3939
/** Message type: error or warning */
40-
type: 'error' | 'warning';
40+
type: "error" | "warning";
4141
}
4242

4343
/** Result of parsing a single SPF record */
@@ -55,8 +55,8 @@ declare namespace spfParse {
5555
/** Error thrown by mechanism validators */
5656
class MechanismError extends Error {
5757
/** Error type */
58-
type: 'warning' | 'error';
59-
constructor(message: string, type?: 'warning' | 'error');
58+
type: "warning" | "error";
59+
constructor(message: string, type?: "warning" | "error");
6060
}
6161

6262
/**
@@ -73,4 +73,4 @@ declare namespace spfParse {
7373
* @param record SPF record string
7474
* @returns Structured parse result
7575
*/
76-
declare function spfParse(record: string): spfParse.ParseResult;
76+
declare function spfParse(record: string): spfParse.ParseResult;

types/spf-parse/spf-parse-tests.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import spfParse = require('spf-parse');
1+
import spfParse = require("spf-parse");
22

3-
const result = spfParse('v=spf1 a mx -all'); // $ExpectType ParseResult
3+
const result = spfParse("v=spf1 a mx -all"); // $ExpectType ParseResult
44
result.mechanisms; // $ExpectType Mechanism[]
55
result.valid; // $ExpectType boolean
66

@@ -20,7 +20,7 @@ if (result.messages) {
2020
}
2121

2222
const messages: spfParse.ParseMessage[] = [];
23-
const mech = spfParse.parseTerm('ip4:192.0.2.0/24', messages); // $ExpectType Mechanism
23+
const mech = spfParse.parseTerm("ip4:192.0.2.0/24", messages); // $ExpectType Mechanism
2424

25-
const err = new spfParse.MechanismError('invalid mech', 'error'); // $ExpectType MechanismError
26-
err.type; // $ExpectType "warning" | "error"
25+
const err = new spfParse.MechanismError("invalid mech", "error"); // $ExpectType MechanismError
26+
err.type; // $ExpectType "warning" | "error"

types/spf-parse/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
"index.d.ts",
1717
"spf-parse-tests.ts"
1818
]
19-
}
19+
}

0 commit comments

Comments
 (0)