You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Defined in: [conflict-helper.ts:31](https://github.com/react18-tools/git-json-resolver/blob/b38c33aa182eca9ca6d5408ecc380f54f3e1d39d/lib/src/conflict-helper.ts#L31)
15
+
Defined in: [conflict-helper.ts:31](https://github.com/react18-tools/git-json-resolver/blob/1c522503a4da2b0c40b914a11887e11d24ab51da/lib/src/conflict-helper.ts#L31)
Copy file name to clipboardExpand all lines: docs/file-parser.md
+75-43Lines changed: 75 additions & 43 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,17 +10,21 @@ nav_order: 6
10
10
11
11
### ParseConflictOptions
12
12
13
-
Defined in: [file-parser.ts:24](https://github.com/react18-tools/git-json-resolver/blob/b38c33aa182eca9ca6d5408ecc380f54f3e1d39d/lib/src/file-parser.ts#L24)
13
+
Defined in: [file-parser.ts:20](https://github.com/react18-tools/git-json-resolver/blob/1c522503a4da2b0c40b914a11887e11d24ab51da/lib/src/file-parser.ts#L20)
Defined in: [file-parser.ts:42](https://github.com/react18-tools/git-json-resolver/blob/b38c33aa182eca9ca6d5408ecc380f54f3e1d39d/lib/src/file-parser.ts#L42)
27
+
Defined in: [file-parser.ts:29](https://github.com/react18-tools/git-json-resolver/blob/1c522503a4da2b0c40b914a11887e11d24ab51da/lib/src/file-parser.ts#L29)
24
28
25
29
Optional filename hint to prioritize parser choice.
26
30
Example:
@@ -32,9 +36,9 @@ If extension is unknown, falls back to `parsers` or `"json"`.
Defined in: [file-parser.ts:32](https://github.com/react18-tools/git-json-resolver/blob/b38c33aa182eca9ca6d5408ecc380f54f3e1d39d/lib/src/file-parser.ts#L32)
41
+
Defined in: [types.ts:191](https://github.com/react18-tools/git-json-resolver/blob/1c522503a4da2b0c40b914a11887e11d24ab51da/lib/src/types.ts#L191)
38
42
39
43
Parsers to attempt, in order:
40
44
@@ -43,11 +47,15 @@ Parsers to attempt, in order:
43
47
44
48
Defaults to `"json"`.
45
49
50
+
###### Inherited from
51
+
52
+
`Pick.parsers`
53
+
46
54
---
47
55
48
56
### ParsedConflict\<T\>
49
57
50
-
Defined in: [file-parser.ts:6](https://github.com/react18-tools/git-json-resolver/blob/b38c33aa182eca9ca6d5408ecc380f54f3e1d39d/lib/src/file-parser.ts#L6)
58
+
Defined in: [file-parser.ts:8](https://github.com/react18-tools/git-json-resolver/blob/1c522503a4da2b0c40b914a11887e11d24ab51da/lib/src/file-parser.ts#L8)
51
59
52
60
Represents a parsed conflict from a file with `ours` and `theirs` versions.
53
61
@@ -65,77 +73,53 @@ The type of the parsed content.
65
73
66
74
> **format**: `string`
67
75
68
-
Defined in: [file-parser.ts:12](https://github.com/react18-tools/git-json-resolver/blob/b38c33aa182eca9ca6d5408ecc380f54f3e1d39d/lib/src/file-parser.ts#L12)
76
+
Defined in: [file-parser.ts:14](https://github.com/react18-tools/git-json-resolver/blob/1c522503a4da2b0c40b914a11887e11d24ab51da/lib/src/file-parser.ts#L14)
69
77
70
78
Format used to parse the content (`json`, `yaml`, `toml`, `xml`, or `custom`).
71
79
72
80
##### ours
73
81
74
82
> **ours**: `T`
75
83
76
-
Defined in: [file-parser.ts:8](https://github.com/react18-tools/git-json-resolver/blob/b38c33aa182eca9ca6d5408ecc380f54f3e1d39d/lib/src/file-parser.ts#L8)
84
+
Defined in: [file-parser.ts:10](https://github.com/react18-tools/git-json-resolver/blob/1c522503a4da2b0c40b914a11887e11d24ab51da/lib/src/file-parser.ts#L10)
77
85
78
86
Parsed content from the "ours" side of the conflict.
79
87
80
88
##### theirs
81
89
82
90
> **theirs**: `T`
83
91
84
-
Defined in: [file-parser.ts:10](https://github.com/react18-tools/git-json-resolver/blob/b38c33aa182eca9ca6d5408ecc380f54f3e1d39d/lib/src/file-parser.ts#L10)
92
+
Defined in: [file-parser.ts:12](https://github.com/react18-tools/git-json-resolver/blob/1c522503a4da2b0c40b914a11887e11d24ab51da/lib/src/file-parser.ts#L12)
85
93
86
94
Parsed content from the "theirs" side of the conflict.
Defined in: [file-parser.ts:16](https://github.com/react18-tools/git-json-resolver/blob/b38c33aa182eca9ca6d5408ecc380f54f3e1d39d/lib/src/file-parser.ts#L16)
95
-
96
-
A parser function that takes a raw string and returns parsed content.
97
-
98
-
#### Properties
99
-
100
-
##### name
101
-
102
-
> **name**: `string`
96
+
## Functions
103
97
104
-
Defined in: [file-parser.ts:16](https://github.com/react18-tools/git-json-resolver/blob/b38c33aa182eca9ca6d5408ecc380f54f3e1d39d/lib/src/file-parser.ts#L16)
Defined in: [file-parser.ts:120](https://github.com/react18-tools/git-json-resolver/blob/1c522503a4da2b0c40b914a11887e11d24ab51da/lib/src/file-parser.ts#L120)
109
103
110
-
Defined in: [file-parser.ts:16](https://github.com/react18-tools/git-json-resolver/blob/b38c33aa182eca9ca6d5408ecc380f54f3e1d39d/lib/src/file-parser.ts#L16)
Defined in: [file-parser.ts:19](https://github.com/react18-tools/git-json-resolver/blob/b38c33aa182eca9ca6d5408ecc380f54f3e1d39d/lib/src/file-parser.ts#L19)
129
-
130
-
Built-in parser identifiers or a custom parser function.
Defined in: [file-parser.ts:62](https://github.com/react18-tools/git-json-resolver/blob/b38c33aa182eca9ca6d5408ecc380f54f3e1d39d/lib/src/file-parser.ts#L62)
122
+
Defined in: [file-parser.ts:49](https://github.com/react18-tools/git-json-resolver/blob/1c522503a4da2b0c40b914a11887e11d24ab51da/lib/src/file-parser.ts#L49)
139
123
140
124
Parses a conflicted file's content into separate `ours` and `theirs` objects.
141
125
@@ -178,3 +162,51 @@ Parsed conflict with both sides and detected format.
Defined in: [file-parser.ts:159](https://github.com/react18-tools/git-json-resolver/blob/1c522503a4da2b0c40b914a11887e11d24ab51da/lib/src/file-parser.ts#L159)
Defined in: [file-parser.ts:141](https://github.com/react18-tools/git-json-resolver/blob/1c522503a4da2b0c40b914a11887e11d24ab51da/lib/src/file-parser.ts#L141)
Defined in: [file-serializer.ts:1](https://github.com/react18-tools/git-json-resolver/blob/b38c33aa182eca9ca6d5408ecc380f54f3e1d39d/lib/src/file-serializer.ts#L1)
15
+
Defined in: [file-serializer.ts:1](https://github.com/react18-tools/git-json-resolver/blob/1c522503a4da2b0c40b914a11887e11d24ab51da/lib/src/file-serializer.ts#L1)
0 commit comments