@effected/templates 0.4.0 → 0.6.0
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/index.d.ts +16 -16
- package/package.json +2 -2
- package/tsdoc-metadata.json +1 -1
package/index.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ declare const CommentStyle_base: Schema.Class<CommentStyle, Schema.Struct<{
|
|
|
29
29
|
*
|
|
30
30
|
* @public
|
|
31
31
|
*/
|
|
32
|
-
declare class CommentStyle extends CommentStyle_base {
|
|
32
|
+
export declare class CommentStyle extends CommentStyle_base {
|
|
33
33
|
/** Shell, YAML, TOML, Python, Dockerfile, `.env`. */
|
|
34
34
|
static readonly hash: CommentStyle;
|
|
35
35
|
/** JavaScript, TypeScript, C, Go, Rust, JSONC. */
|
|
@@ -88,7 +88,7 @@ declare class CommentStyle extends CommentStyle_base {
|
|
|
88
88
|
*
|
|
89
89
|
* @public
|
|
90
90
|
*/
|
|
91
|
-
declare const SectionKey: Schema.String;
|
|
91
|
+
export declare const SectionKey: Schema.String;
|
|
92
92
|
declare const SectionId_base: Schema.Class<SectionId, Schema.Struct<{
|
|
93
93
|
/** The section's name, exactly as it appears in the markers. */
|
|
94
94
|
readonly key: Schema.String;
|
|
@@ -118,7 +118,7 @@ declare const SectionId_base: Schema.Class<SectionId, Schema.Struct<{
|
|
|
118
118
|
*
|
|
119
119
|
* @public
|
|
120
120
|
*/
|
|
121
|
-
declare class SectionId extends SectionId_base {
|
|
121
|
+
export declare class SectionId extends SectionId_base {
|
|
122
122
|
/**
|
|
123
123
|
* Pair this identity with the content a tool wants inside it.
|
|
124
124
|
*
|
|
@@ -169,7 +169,7 @@ declare const Section_base: Schema.Class<Section, Schema.Struct<{
|
|
|
169
169
|
*
|
|
170
170
|
* @public
|
|
171
171
|
*/
|
|
172
|
-
declare class Section extends Section_base {
|
|
172
|
+
export declare class Section extends Section_base {
|
|
173
173
|
/** This section's identity, without its content. */
|
|
174
174
|
get id(): SectionId;
|
|
175
175
|
/** The same section carrying different content. Attributes are preserved. */
|
|
@@ -196,7 +196,7 @@ declare const PlacedSection_base: Schema.Class<PlacedSection, Schema.Struct<{
|
|
|
196
196
|
*
|
|
197
197
|
* @public
|
|
198
198
|
*/
|
|
199
|
-
declare class PlacedSection extends PlacedSection_base {}
|
|
199
|
+
export declare class PlacedSection extends PlacedSection_base {}
|
|
200
200
|
//#endregion
|
|
201
201
|
//#region src/SectionDialect.d.ts
|
|
202
202
|
/**
|
|
@@ -237,7 +237,7 @@ declare const SectionRenderError_base: Schema.Class<SectionRenderError, Schema.T
|
|
|
237
237
|
*
|
|
238
238
|
* @public
|
|
239
239
|
*/
|
|
240
|
-
declare class SectionRenderError extends SectionRenderError_base {
|
|
240
|
+
export declare class SectionRenderError extends SectionRenderError_base {
|
|
241
241
|
get message(): string;
|
|
242
242
|
}
|
|
243
243
|
declare const SectionDialect_base: Schema.Class<SectionDialect, Schema.Struct<{
|
|
@@ -269,7 +269,7 @@ declare const SectionDialect_base: Schema.Class<SectionDialect, Schema.Struct<{
|
|
|
269
269
|
*
|
|
270
270
|
* @public
|
|
271
271
|
*/
|
|
272
|
-
declare class SectionDialect extends SectionDialect_base {
|
|
272
|
+
export declare class SectionDialect extends SectionDialect_base {
|
|
273
273
|
/**
|
|
274
274
|
* The zero-configuration dialect: the phrase `MANAGED SECTION` and every
|
|
275
275
|
* preset comment style.
|
|
@@ -329,7 +329,7 @@ declare class SectionDialect extends SectionDialect_base {
|
|
|
329
329
|
*
|
|
330
330
|
* @public
|
|
331
331
|
*/
|
|
332
|
-
type SyncOutcome = Data.TaggedEnum<{
|
|
332
|
+
export type SyncOutcome = Data.TaggedEnum<{
|
|
333
333
|
/** The section was not in the document and has been added. */
|
|
334
334
|
readonly Created: {
|
|
335
335
|
readonly section: Section;
|
|
@@ -350,7 +350,7 @@ type SyncOutcome = Data.TaggedEnum<{
|
|
|
350
350
|
*
|
|
351
351
|
* @public
|
|
352
352
|
*/
|
|
353
|
-
declare const SyncOutcome: {
|
|
353
|
+
export declare const SyncOutcome: {
|
|
354
354
|
readonly $is: <Tag extends "Created" | "Unchanged" | "Updated">(tag: Tag) => (u: unknown) => u is Extract<{
|
|
355
355
|
readonly _tag: "Created";
|
|
356
356
|
readonly section: Section;
|
|
@@ -445,7 +445,7 @@ declare const SyncOutcome: {
|
|
|
445
445
|
*
|
|
446
446
|
* @public
|
|
447
447
|
*/
|
|
448
|
-
type CheckOutcome = Data.TaggedEnum<{
|
|
448
|
+
export type CheckOutcome = Data.TaggedEnum<{
|
|
449
449
|
/** No section with this identity is in the document. */
|
|
450
450
|
readonly Absent: {
|
|
451
451
|
readonly id: SectionId;
|
|
@@ -466,7 +466,7 @@ type CheckOutcome = Data.TaggedEnum<{
|
|
|
466
466
|
*
|
|
467
467
|
* @public
|
|
468
468
|
*/
|
|
469
|
-
declare const CheckOutcome: {
|
|
469
|
+
export declare const CheckOutcome: {
|
|
470
470
|
readonly $is: <Tag extends "Absent" | "Drifted" | "UpToDate">(tag: Tag) => (u: unknown) => u is Extract<{
|
|
471
471
|
readonly _tag: "Absent";
|
|
472
472
|
readonly id: SectionId;
|
|
@@ -576,7 +576,7 @@ declare const SectionParseError_base: Schema.Class<SectionParseError, Schema.Tag
|
|
|
576
576
|
*
|
|
577
577
|
* @public
|
|
578
578
|
*/
|
|
579
|
-
declare class SectionParseError extends SectionParseError_base {
|
|
579
|
+
export declare class SectionParseError extends SectionParseError_base {
|
|
580
580
|
get message(): string;
|
|
581
581
|
/**
|
|
582
582
|
* The same failure, attributed to a file.
|
|
@@ -640,7 +640,7 @@ declare const SectionDocument_base: Schema.Class<SectionDocument, Schema.Struct<
|
|
|
640
640
|
*
|
|
641
641
|
* @public
|
|
642
642
|
*/
|
|
643
|
-
declare class SectionDocument extends SectionDocument_base {
|
|
643
|
+
export declare class SectionDocument extends SectionDocument_base {
|
|
644
644
|
/**
|
|
645
645
|
* Parse a document. The synchronous primitive.
|
|
646
646
|
*
|
|
@@ -718,7 +718,7 @@ declare const SectionFileError_base: Schema.Class<SectionFileError, Schema.Tagge
|
|
|
718
718
|
*
|
|
719
719
|
* @public
|
|
720
720
|
*/
|
|
721
|
-
declare class SectionFileError extends SectionFileError_base {
|
|
721
|
+
export declare class SectionFileError extends SectionFileError_base {
|
|
722
722
|
get message(): string;
|
|
723
723
|
}
|
|
724
724
|
/**
|
|
@@ -804,7 +804,7 @@ declare const ManagedSection_base: Context.ServiceClass<ManagedSection, "@effect
|
|
|
804
804
|
*
|
|
805
805
|
* @public
|
|
806
806
|
*/
|
|
807
|
-
declare class ManagedSection extends ManagedSection_base {
|
|
807
|
+
export declare class ManagedSection extends ManagedSection_base {
|
|
808
808
|
/**
|
|
809
809
|
* The default layer, reading and writing {@link SectionDialect.default}
|
|
810
810
|
* markers.
|
|
@@ -838,5 +838,5 @@ declare class ManagedSection extends ManagedSection_base {
|
|
|
838
838
|
static readonly layerTest: (overrides?: Partial<ManagedSectionShape>) => Layer.Layer<ManagedSection>;
|
|
839
839
|
}
|
|
840
840
|
//#endregion
|
|
841
|
-
export {
|
|
841
|
+
export type { Eol, ManagedSectionOptions, ManagedSectionShape, SectionReconciliation };
|
|
842
842
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effected/templates",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Managed-section blocks in user-editable files: parse, reconcile, sync and check delimited regions.",
|
|
6
6
|
"keywords": [
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"./package.json": "./package.json"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"effect": "4.0.0-rc.
|
|
40
|
+
"effect": "4.0.0-rc.115"
|
|
41
41
|
},
|
|
42
42
|
"engines": {
|
|
43
43
|
"node": ">=24.11.0"
|