@oh-my-pi/pi-wire 18.12.0 → 18.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/tsp.d.ts +4 -0
- package/package.json +1 -1
- package/src/tsp.ts +4 -0
package/dist/types/tsp.d.ts
CHANGED
|
@@ -161,7 +161,9 @@ export interface TspMarkdownProps {
|
|
|
161
161
|
}
|
|
162
162
|
export interface TspCodeProps {
|
|
163
163
|
text?: string;
|
|
164
|
+
/** The language of text that is no file's (`bash`, `json`); wins over `path`. */
|
|
164
165
|
lang?: string;
|
|
166
|
+
/** The file the text comes from: the terminal picks the grammar from it (and heads a block outside a tool card with it). */
|
|
165
167
|
path?: string;
|
|
166
168
|
start?: number;
|
|
167
169
|
numbers?: boolean;
|
|
@@ -182,7 +184,9 @@ export interface TspDiffProps {
|
|
|
182
184
|
/** Unified diff text (or give `hunks`). */
|
|
183
185
|
text?: string;
|
|
184
186
|
hunks?: readonly TspDiffHunk[];
|
|
187
|
+
/** The file the diff changes: the terminal picks the grammar from it. Not drawn. */
|
|
185
188
|
path?: string;
|
|
189
|
+
/** A language overriding the one `path` gives. */
|
|
186
190
|
lang?: string;
|
|
187
191
|
mode?: "unified" | "split" | "auto";
|
|
188
192
|
}
|
package/package.json
CHANGED
package/src/tsp.ts
CHANGED
|
@@ -212,7 +212,9 @@ export interface TspMarkdownProps {
|
|
|
212
212
|
}
|
|
213
213
|
export interface TspCodeProps {
|
|
214
214
|
text?: string;
|
|
215
|
+
/** The language of text that is no file's (`bash`, `json`); wins over `path`. */
|
|
215
216
|
lang?: string;
|
|
217
|
+
/** The file the text comes from: the terminal picks the grammar from it (and heads a block outside a tool card with it). */
|
|
216
218
|
path?: string;
|
|
217
219
|
start?: number;
|
|
218
220
|
numbers?: boolean;
|
|
@@ -230,7 +232,9 @@ export interface TspDiffProps {
|
|
|
230
232
|
/** Unified diff text (or give `hunks`). */
|
|
231
233
|
text?: string;
|
|
232
234
|
hunks?: readonly TspDiffHunk[];
|
|
235
|
+
/** The file the diff changes: the terminal picks the grammar from it. Not drawn. */
|
|
233
236
|
path?: string;
|
|
237
|
+
/** A language overriding the one `path` gives. */
|
|
234
238
|
lang?: string;
|
|
235
239
|
mode?: "unified" | "split" | "auto";
|
|
236
240
|
}
|