@effected/toml 0.5.0 → 0.7.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/Toml.js CHANGED
@@ -227,7 +227,7 @@ var Toml = class Toml {
227
227
  * paths; the pre-bound {@link Toml.TomlFromString} covers the common case.
228
228
  */
229
229
  static fromString() {
230
- return Schema.String.pipe(Schema.decodeTo(Schema.Unknown, SchemaTransformation.transformOrFail({
230
+ return Schema.String.pipe(Schema.decodeTo(Schema.Unknown, SchemaTransformation.transformEffect({
231
231
  decode: (input) => Toml.parse(input).pipe(Effect.mapError((error) => new SchemaIssue.InvalidValue({ message: error.message }, input))),
232
232
  encode: (value) => Effect.fromResult(Toml.stringifyResult(value)).pipe(Effect.mapError((error) => new SchemaIssue.InvalidValue({ message: error.message }, value)))
233
233
  })));
package/TomlDocument.js CHANGED
@@ -97,7 +97,7 @@ var TomlDocument = class TomlDocument extends Schema.Class("TomlDocument")({
97
97
  * paths.
98
98
  */
99
99
  static schema() {
100
- return Schema.String.pipe(Schema.decodeTo(Schema.instanceOf(TomlDocument), SchemaTransformation.transformOrFail({
100
+ return Schema.String.pipe(Schema.decodeTo(Schema.instanceOf(TomlDocument), SchemaTransformation.transformEffect({
101
101
  decode: (input) => TomlDocument.parse(input).pipe(Effect.mapError((error) => new SchemaIssue.InvalidValue({ message: error.message }, input))),
102
102
  encode: (doc) => Effect.succeed(doc.stringify())
103
103
  })));
package/index.d.ts CHANGED
@@ -5,62 +5,62 @@ import { Data, Effect, Result, Schema, Stream } from "effect";
5
5
  *
6
6
  * @public
7
7
  */
8
- declare const TomlLexErrorCode: Schema.Literals<readonly ["InvalidUtf8", "UnterminatedString", "InvalidEscape", "InvalidUnicodeEscape", "ControlCharacterInString", "ControlCharacterInComment", "InvalidCharacter", "BareCarriageReturn"]>;
8
+ export declare const TomlLexErrorCode: Schema.Literals<readonly ["InvalidUtf8", "UnterminatedString", "InvalidEscape", "InvalidUnicodeEscape", "ControlCharacterInString", "ControlCharacterInComment", "InvalidCharacter", "BareCarriageReturn"]>;
9
9
  /**
10
10
  * The union of all lexer-stage error code string literals.
11
11
  *
12
12
  * @public
13
13
  */
14
- type TomlLexErrorCode = typeof TomlLexErrorCode.Type;
14
+ export type TomlLexErrorCode = typeof TomlLexErrorCode.Type;
15
15
  /**
16
16
  * Error codes emitted by the parser stage.
17
17
  *
18
18
  * @public
19
19
  */
20
- declare const TomlParseErrorCode: Schema.Literals<readonly ["ExpectedKey", "ExpectedEquals", "ExpectedValue", "ExpectedNewline", "ExpectedTableHeaderClose", "UnterminatedArray", "UnterminatedInlineTable", "InvalidValue", "InvalidNumber", "IntegerOutOfRange", "InvalidDateTime", "NestingDepthExceeded"]>;
20
+ export declare const TomlParseErrorCode: Schema.Literals<readonly ["ExpectedKey", "ExpectedEquals", "ExpectedValue", "ExpectedNewline", "ExpectedTableHeaderClose", "UnterminatedArray", "UnterminatedInlineTable", "InvalidValue", "InvalidNumber", "IntegerOutOfRange", "InvalidDateTime", "NestingDepthExceeded"]>;
21
21
  /**
22
22
  * The union of all parser-stage error code string literals.
23
23
  *
24
24
  * @public
25
25
  */
26
- type TomlParseErrorCode = typeof TomlParseErrorCode.Type;
26
+ export type TomlParseErrorCode = typeof TomlParseErrorCode.Type;
27
27
  /**
28
28
  * Error codes emitted by the semantic (table/key conflict) stage.
29
29
  *
30
30
  * @public
31
31
  */
32
- declare const TomlSemanticErrorCode: Schema.Literals<readonly ["DuplicateKey", "TableRedefined", "ArrayOfTablesConflict", "DottedKeyConflict", "InlineTableExtended"]>;
32
+ export declare const TomlSemanticErrorCode: Schema.Literals<readonly ["DuplicateKey", "TableRedefined", "ArrayOfTablesConflict", "DottedKeyConflict", "InlineTableExtended"]>;
33
33
  /**
34
34
  * The union of all semantic-stage error code string literals.
35
35
  *
36
36
  * @public
37
37
  */
38
- type TomlSemanticErrorCode = typeof TomlSemanticErrorCode.Type;
38
+ export type TomlSemanticErrorCode = typeof TomlSemanticErrorCode.Type;
39
39
  /**
40
40
  * Error codes emitted by the stringifier stage.
41
41
  *
42
42
  * @public
43
43
  */
44
- declare const TomlStringifyErrorCode: Schema.Literals<readonly ["CircularReference", "UnsupportedValue", "IntegerOutOfRange", "NestingDepthExceeded"]>;
44
+ export declare const TomlStringifyErrorCode: Schema.Literals<readonly ["CircularReference", "UnsupportedValue", "IntegerOutOfRange", "NestingDepthExceeded"]>;
45
45
  /**
46
46
  * The union of all stringifier-stage error code string literals.
47
47
  *
48
48
  * @public
49
49
  */
50
- type TomlStringifyErrorCode = typeof TomlStringifyErrorCode.Type;
50
+ export type TomlStringifyErrorCode = typeof TomlStringifyErrorCode.Type;
51
51
  /**
52
52
  * Union of all TOML error codes across all pipeline stages. Stage
53
53
  * discrimination lives here (in the code), not in separate error classes.
54
54
  *
55
55
  * @public
56
56
  */
57
- declare const TomlErrorCode: Schema.Union<readonly [Schema.Literals<readonly ["InvalidUtf8", "UnterminatedString", "InvalidEscape", "InvalidUnicodeEscape", "ControlCharacterInString", "ControlCharacterInComment", "InvalidCharacter", "BareCarriageReturn"]>, Schema.Literals<readonly ["ExpectedKey", "ExpectedEquals", "ExpectedValue", "ExpectedNewline", "ExpectedTableHeaderClose", "UnterminatedArray", "UnterminatedInlineTable", "InvalidValue", "InvalidNumber", "IntegerOutOfRange", "InvalidDateTime", "NestingDepthExceeded"]>, Schema.Literals<readonly ["DuplicateKey", "TableRedefined", "ArrayOfTablesConflict", "DottedKeyConflict", "InlineTableExtended"]>, Schema.Literals<readonly ["CircularReference", "UnsupportedValue", "IntegerOutOfRange", "NestingDepthExceeded"]>]>;
57
+ export declare const TomlErrorCode: Schema.Union<readonly [Schema.Literals<readonly ["InvalidUtf8", "UnterminatedString", "InvalidEscape", "InvalidUnicodeEscape", "ControlCharacterInString", "ControlCharacterInComment", "InvalidCharacter", "BareCarriageReturn"]>, Schema.Literals<readonly ["ExpectedKey", "ExpectedEquals", "ExpectedValue", "ExpectedNewline", "ExpectedTableHeaderClose", "UnterminatedArray", "UnterminatedInlineTable", "InvalidValue", "InvalidNumber", "IntegerOutOfRange", "InvalidDateTime", "NestingDepthExceeded"]>, Schema.Literals<readonly ["DuplicateKey", "TableRedefined", "ArrayOfTablesConflict", "DottedKeyConflict", "InlineTableExtended"]>, Schema.Literals<readonly ["CircularReference", "UnsupportedValue", "IntegerOutOfRange", "NestingDepthExceeded"]>]>;
58
58
  /**
59
59
  * The union of all TOML error code string literals.
60
60
  *
61
61
  * @public
62
62
  */
63
- type TomlErrorCode = typeof TomlErrorCode.Type;
63
+ export type TomlErrorCode = typeof TomlErrorCode.Type;
64
64
  declare const TomlDiagnostic_base: Schema.Class<TomlDiagnostic, Schema.Struct<{
65
65
  readonly code: Schema.Union<readonly [Schema.Literals<readonly ["InvalidUtf8", "UnterminatedString", "InvalidEscape", "InvalidUnicodeEscape", "ControlCharacterInString", "ControlCharacterInComment", "InvalidCharacter", "BareCarriageReturn"]>, Schema.Literals<readonly ["ExpectedKey", "ExpectedEquals", "ExpectedValue", "ExpectedNewline", "ExpectedTableHeaderClose", "UnterminatedArray", "UnterminatedInlineTable", "InvalidValue", "InvalidNumber", "IntegerOutOfRange", "InvalidDateTime", "NestingDepthExceeded"]>, Schema.Literals<readonly ["DuplicateKey", "TableRedefined", "ArrayOfTablesConflict", "DottedKeyConflict", "InlineTableExtended"]>, Schema.Literals<readonly ["CircularReference", "UnsupportedValue", "IntegerOutOfRange", "NestingDepthExceeded"]>]>;
66
66
  readonly message: Schema.String;
@@ -82,7 +82,7 @@ declare const TomlDiagnostic_base: Schema.Class<TomlDiagnostic, Schema.Struct<{
82
82
  *
83
83
  * @public
84
84
  */
85
- declare class TomlDiagnostic extends TomlDiagnostic_base {
85
+ export declare class TomlDiagnostic extends TomlDiagnostic_base {
86
86
  /**
87
87
  * Materialize an engine record, deriving `line`/`character` (0-based)
88
88
  * from `offset` against the source `text`. Advanced — the parse/stringify
@@ -113,7 +113,7 @@ declare const TomlStringifyOptions_base: Schema.Class<TomlStringifyOptions, Sche
113
113
  *
114
114
  * @public
115
115
  */
116
- declare class TomlStringifyOptions extends TomlStringifyOptions_base {}
116
+ export declare class TomlStringifyOptions extends TomlStringifyOptions_base {}
117
117
  declare const TomlParseError_base: Schema.Class<TomlParseError, Schema.TaggedStruct<"TomlParseError", {
118
118
  readonly diagnostics: Schema.$Array<typeof TomlDiagnostic>;
119
119
  }>, import("effect/Cause").YieldableError>;
@@ -125,7 +125,7 @@ declare const TomlParseError_base: Schema.Class<TomlParseError, Schema.TaggedStr
125
125
  *
126
126
  * @public
127
127
  */
128
- declare class TomlParseError extends TomlParseError_base {
128
+ export declare class TomlParseError extends TomlParseError_base {
129
129
  get message(): string;
130
130
  }
131
131
  declare const TomlStringifyError_base: Schema.Class<TomlStringifyError, Schema.TaggedStruct<"TomlStringifyError", {
@@ -139,7 +139,7 @@ declare const TomlStringifyError_base: Schema.Class<TomlStringifyError, Schema.T
139
139
  *
140
140
  * @public
141
141
  */
142
- declare class TomlStringifyError extends TomlStringifyError_base {
142
+ export declare class TomlStringifyError extends TomlStringifyError_base {
143
143
  get message(): string;
144
144
  }
145
145
  /**
@@ -183,7 +183,7 @@ interface TomlBoundCodec<T, RD = never, RE = never> {
183
183
  *
184
184
  * @public
185
185
  */
186
- declare class Toml {
186
+ export declare class Toml {
187
187
  private constructor();
188
188
  /**
189
189
  * Parse a TOML 1.1.0 document into a plain JavaScript value, synchronously,
@@ -359,7 +359,7 @@ declare const TomlLocalDate_base: Schema.Class<TomlLocalDate, Schema.Struct<{
359
359
  *
360
360
  * @public
361
361
  */
362
- declare class TomlLocalDate extends TomlLocalDate_base {
362
+ export declare class TomlLocalDate extends TomlLocalDate_base {
363
363
  toString(): string;
364
364
  }
365
365
  declare const TomlLocalTime_base: Schema.Class<TomlLocalTime, Schema.Struct<{
@@ -374,7 +374,7 @@ declare const TomlLocalTime_base: Schema.Class<TomlLocalTime, Schema.Struct<{
374
374
  *
375
375
  * @public
376
376
  */
377
- declare class TomlLocalTime extends TomlLocalTime_base {
377
+ export declare class TomlLocalTime extends TomlLocalTime_base {
378
378
  toString(): string;
379
379
  }
380
380
  declare const TomlLocalDateTime_base: Schema.Class<TomlLocalDateTime, Schema.Struct<{
@@ -392,7 +392,7 @@ declare const TomlLocalDateTime_base: Schema.Class<TomlLocalDateTime, Schema.Str
392
392
  *
393
393
  * @public
394
394
  */
395
- declare class TomlLocalDateTime extends TomlLocalDateTime_base {
395
+ export declare class TomlLocalDateTime extends TomlLocalDateTime_base {
396
396
  toString(): string;
397
397
  }
398
398
  declare const TomlOffsetDateTime_base: Schema.Class<TomlOffsetDateTime, Schema.Struct<{
@@ -412,7 +412,7 @@ declare const TomlOffsetDateTime_base: Schema.Class<TomlOffsetDateTime, Schema.S
412
412
  *
413
413
  * @public
414
414
  */
415
- declare class TomlOffsetDateTime extends TomlOffsetDateTime_base {
415
+ export declare class TomlOffsetDateTime extends TomlOffsetDateTime_base {
416
416
  toString(): string;
417
417
  }
418
418
  //#endregion
@@ -423,13 +423,13 @@ declare class TomlOffsetDateTime extends TomlOffsetDateTime_base {
423
423
  *
424
424
  * @public
425
425
  */
426
- declare const TomlKeyKind: Schema.Literals<readonly ["bare", "basic", "literal"]>;
426
+ export declare const TomlKeyKind: Schema.Literals<readonly ["bare", "basic", "literal"]>;
427
427
  /**
428
428
  * The union of all key-kind string literals.
429
429
  *
430
430
  * @public
431
431
  */
432
- type TomlKeyKind = typeof TomlKeyKind.Type;
432
+ export type TomlKeyKind = typeof TomlKeyKind.Type;
433
433
  declare const TomlKey_base: Schema.Class<TomlKey, Schema.TaggedStruct<"TomlKey", {
434
434
  readonly value: Schema.String;
435
435
  readonly kind: Schema.Literals<readonly ["bare", "basic", "literal"]>;
@@ -445,19 +445,19 @@ declare const TomlKey_base: Schema.Class<TomlKey, Schema.TaggedStruct<"TomlKey",
445
445
  *
446
446
  * @public
447
447
  */
448
- declare class TomlKey extends TomlKey_base {}
448
+ export declare class TomlKey extends TomlKey_base {}
449
449
  /**
450
450
  * The four TOML string forms.
451
451
  *
452
452
  * @public
453
453
  */
454
- declare const TomlStringStyle: Schema.Literals<readonly ["basic", "literal", "multiline-basic", "multiline-literal"]>;
454
+ export declare const TomlStringStyle: Schema.Literals<readonly ["basic", "literal", "multiline-basic", "multiline-literal"]>;
455
455
  /**
456
456
  * The union of all string-style literals.
457
457
  *
458
458
  * @public
459
459
  */
460
- type TomlStringStyle = typeof TomlStringStyle.Type;
460
+ export type TomlStringStyle = typeof TomlStringStyle.Type;
461
461
  declare const TomlString_base: Schema.Class<TomlString, Schema.TaggedStruct<"TomlString", {
462
462
  readonly value: Schema.String;
463
463
  readonly style: Schema.Literals<readonly ["basic", "literal", "multiline-basic", "multiline-literal"]>;
@@ -470,7 +470,7 @@ declare const TomlString_base: Schema.Class<TomlString, Schema.TaggedStruct<"Tom
470
470
  *
471
471
  * @public
472
472
  */
473
- declare class TomlString extends TomlString_base {}
473
+ export declare class TomlString extends TomlString_base {}
474
474
  declare const TomlInteger_base: Schema.Class<TomlInteger, Schema.TaggedStruct<"TomlInteger", {
475
475
  readonly value: Schema.Union<readonly [Schema.Number, Schema.BigInt]>;
476
476
  readonly offset: Schema.Number;
@@ -482,7 +482,7 @@ declare const TomlInteger_base: Schema.Class<TomlInteger, Schema.TaggedStruct<"T
482
482
  *
483
483
  * @public
484
484
  */
485
- declare class TomlInteger extends TomlInteger_base {}
485
+ export declare class TomlInteger extends TomlInteger_base {}
486
486
  declare const TomlFloat_base: Schema.Class<TomlFloat, Schema.TaggedStruct<"TomlFloat", {
487
487
  readonly value: Schema.Number;
488
488
  readonly offset: Schema.Number;
@@ -493,7 +493,7 @@ declare const TomlFloat_base: Schema.Class<TomlFloat, Schema.TaggedStruct<"TomlF
493
493
  *
494
494
  * @public
495
495
  */
496
- declare class TomlFloat extends TomlFloat_base {}
496
+ export declare class TomlFloat extends TomlFloat_base {}
497
497
  declare const TomlBoolean_base: Schema.Class<TomlBoolean, Schema.TaggedStruct<"TomlBoolean", {
498
498
  readonly value: Schema.Boolean;
499
499
  readonly offset: Schema.Number;
@@ -504,7 +504,7 @@ declare const TomlBoolean_base: Schema.Class<TomlBoolean, Schema.TaggedStruct<"T
504
504
  *
505
505
  * @public
506
506
  */
507
- declare class TomlBoolean extends TomlBoolean_base {}
507
+ export declare class TomlBoolean extends TomlBoolean_base {}
508
508
  declare const TomlDateTimeLiteral_base: Schema.Class<TomlDateTimeLiteral, Schema.TaggedStruct<"TomlDateTimeLiteral", {
509
509
  readonly value: Schema.Union<readonly [typeof TomlOffsetDateTime, typeof TomlLocalDateTime, typeof TomlLocalDate, typeof TomlLocalTime]>;
510
510
  readonly offset: Schema.Number;
@@ -515,7 +515,7 @@ declare const TomlDateTimeLiteral_base: Schema.Class<TomlDateTimeLiteral, Schema
515
515
  *
516
516
  * @public
517
517
  */
518
- declare class TomlDateTimeLiteral extends TomlDateTimeLiteral_base {}
518
+ export declare class TomlDateTimeLiteral extends TomlDateTimeLiteral_base {}
519
519
  declare const TomlArray_base: Schema.Class<TomlArray, Schema.TaggedStruct<"TomlArray", {
520
520
  readonly items: Schema.$Array<Schema.suspend<Schema.Codec<TomlValueNode, TomlValueNode, never, never>>>;
521
521
  readonly offset: Schema.Number;
@@ -527,7 +527,7 @@ declare const TomlArray_base: Schema.Class<TomlArray, Schema.TaggedStruct<"TomlA
527
527
  *
528
528
  * @public
529
529
  */
530
- declare class TomlArray extends TomlArray_base {}
530
+ export declare class TomlArray extends TomlArray_base {}
531
531
  declare const TomlInlineEntry_base: Schema.Class<TomlInlineEntry, Schema.TaggedStruct<"TomlInlineEntry", {
532
532
  readonly keyPath: Schema.$Array<typeof TomlKey>;
533
533
  readonly value: Schema.suspend<Schema.Codec<TomlValueNode, TomlValueNode, never, never>>;
@@ -540,7 +540,7 @@ declare const TomlInlineEntry_base: Schema.Class<TomlInlineEntry, Schema.TaggedS
540
540
  *
541
541
  * @public
542
542
  */
543
- declare class TomlInlineEntry extends TomlInlineEntry_base {}
543
+ export declare class TomlInlineEntry extends TomlInlineEntry_base {}
544
544
  declare const TomlInlineTable_base: Schema.Class<TomlInlineTable, Schema.TaggedStruct<"TomlInlineTable", {
545
545
  readonly entries: Schema.$Array<typeof TomlInlineEntry>;
546
546
  readonly offset: Schema.Number;
@@ -552,7 +552,7 @@ declare const TomlInlineTable_base: Schema.Class<TomlInlineTable, Schema.TaggedS
552
552
  *
553
553
  * @public
554
554
  */
555
- declare class TomlInlineTable extends TomlInlineTable_base {}
555
+ export declare class TomlInlineTable extends TomlInlineTable_base {}
556
556
  /**
557
557
  * A discriminated-union schema covering all seven TOML value node types.
558
558
  * Defined lazily via `Schema.suspend` to break the recursive reference chain
@@ -560,13 +560,13 @@ declare class TomlInlineTable extends TomlInlineTable_base {}
560
560
  *
561
561
  * @public
562
562
  */
563
- declare const TomlValueNode: Schema.Codec<TomlString | TomlInteger | TomlFloat | TomlBoolean | TomlDateTimeLiteral | TomlArray | TomlInlineTable>;
563
+ export declare const TomlValueNode: Schema.Codec<TomlString | TomlInteger | TomlFloat | TomlBoolean | TomlDateTimeLiteral | TomlArray | TomlInlineTable>;
564
564
  /**
565
565
  * The union of all TOML value node types.
566
566
  *
567
567
  * @public
568
568
  */
569
- type TomlValueNode = TomlString | TomlInteger | TomlFloat | TomlBoolean | TomlDateTimeLiteral | TomlArray | TomlInlineTable;
569
+ export type TomlValueNode = TomlString | TomlInteger | TomlFloat | TomlBoolean | TomlDateTimeLiteral | TomlArray | TomlInlineTable;
570
570
  declare const TomlKeyValue_base: Schema.Class<TomlKeyValue, Schema.TaggedStruct<"TomlKeyValue", {
571
571
  readonly keyPath: Schema.$Array<typeof TomlKey>;
572
572
  readonly value: Schema.suspend<Schema.Codec<TomlValueNode, TomlValueNode, never, never>>;
@@ -582,7 +582,7 @@ declare const TomlKeyValue_base: Schema.Class<TomlKeyValue, Schema.TaggedStruct<
582
582
  *
583
583
  * @public
584
584
  */
585
- declare class TomlKeyValue extends TomlKeyValue_base {}
585
+ export declare class TomlKeyValue extends TomlKeyValue_base {}
586
586
  declare const TomlTableHeader_base: Schema.Class<TomlTableHeader, Schema.TaggedStruct<"TomlTableHeader", {
587
587
  readonly keyPath: Schema.$Array<typeof TomlKey>;
588
588
  readonly comment: Schema.optionalKey<Schema.String>;
@@ -594,7 +594,7 @@ declare const TomlTableHeader_base: Schema.Class<TomlTableHeader, Schema.TaggedS
594
594
  *
595
595
  * @public
596
596
  */
597
- declare class TomlTableHeader extends TomlTableHeader_base {}
597
+ export declare class TomlTableHeader extends TomlTableHeader_base {}
598
598
  declare const TomlArrayTableHeader_base: Schema.Class<TomlArrayTableHeader, Schema.TaggedStruct<"TomlArrayTableHeader", {
599
599
  readonly keyPath: Schema.$Array<typeof TomlKey>;
600
600
  readonly comment: Schema.optionalKey<Schema.String>;
@@ -607,7 +607,7 @@ declare const TomlArrayTableHeader_base: Schema.Class<TomlArrayTableHeader, Sche
607
607
  *
608
608
  * @public
609
609
  */
610
- declare class TomlArrayTableHeader extends TomlArrayTableHeader_base {}
610
+ export declare class TomlArrayTableHeader extends TomlArrayTableHeader_base {}
611
611
  declare const TomlTrivia_base: Schema.Class<TomlTrivia, Schema.TaggedStruct<"TomlTrivia", {
612
612
  readonly text: Schema.String;
613
613
  readonly offset: Schema.Number;
@@ -619,20 +619,20 @@ declare const TomlTrivia_base: Schema.Class<TomlTrivia, Schema.TaggedStruct<"Tom
619
619
  *
620
620
  * @public
621
621
  */
622
- declare class TomlTrivia extends TomlTrivia_base {}
622
+ export declare class TomlTrivia extends TomlTrivia_base {}
623
623
  /**
624
624
  * The union schema of the four expression types making up a document's
625
625
  * linear CST.
626
626
  *
627
627
  * @public
628
628
  */
629
- declare const TomlExpression: Schema.Union<readonly [typeof TomlKeyValue, typeof TomlTableHeader, typeof TomlArrayTableHeader, typeof TomlTrivia]>;
629
+ export declare const TomlExpression: Schema.Union<readonly [typeof TomlKeyValue, typeof TomlTableHeader, typeof TomlArrayTableHeader, typeof TomlTrivia]>;
630
630
  /**
631
631
  * The union of all expression node types.
632
632
  *
633
633
  * @public
634
634
  */
635
- type TomlExpression = typeof TomlExpression.Type;
635
+ export type TomlExpression = typeof TomlExpression.Type;
636
636
  //#endregion
637
637
  //#region src/TomlDocument.d.ts
638
638
  declare const TomlDocument_base: Schema.Class<TomlDocument, Schema.Struct<{
@@ -672,7 +672,7 @@ declare const TomlDocument_base: Schema.Class<TomlDocument, Schema.Struct<{
672
672
  *
673
673
  * @public
674
674
  */
675
- declare class TomlDocument extends TomlDocument_base {
675
+ export declare class TomlDocument extends TomlDocument_base {
676
676
  /**
677
677
  * Parse TOML text into a lossless document. Fails with
678
678
  * {@link TomlParseError} only on lex/parse errors — including a
@@ -735,7 +735,7 @@ declare const TomlRange_base: Schema.Class<TomlRange, Schema.Struct<{
735
735
  *
736
736
  * @public
737
737
  */
738
- declare class TomlRange extends TomlRange_base {}
738
+ export declare class TomlRange extends TomlRange_base {}
739
739
  declare const TomlEdit_base: Schema.Class<TomlEdit, Schema.Struct<{
740
740
  readonly offset: Schema.Number;
741
741
  readonly length: Schema.Number;
@@ -753,7 +753,7 @@ declare const TomlEdit_base: Schema.Class<TomlEdit, Schema.Struct<{
753
753
  *
754
754
  * @public
755
755
  */
756
- declare class TomlEdit extends TomlEdit_base {
756
+ export declare class TomlEdit extends TomlEdit_base {
757
757
  /**
758
758
  * Apply `edits` to `text`, producing a new string. Edits are applied in
759
759
  * reverse-offset order so earlier offsets stay valid; the input `edits`
@@ -786,7 +786,7 @@ declare const TomlFormattingOptions_base: Schema.Class<TomlFormattingOptions, Sc
786
786
  *
787
787
  * @public
788
788
  */
789
- declare class TomlFormattingOptions extends TomlFormattingOptions_base {}
789
+ export declare class TomlFormattingOptions extends TomlFormattingOptions_base {}
790
790
  declare const TomlModificationError_base: Schema.Class<TomlModificationError, Schema.TaggedStruct<"TomlModificationError", {
791
791
  readonly diagnostic: typeof TomlDiagnostic;
792
792
  }>, import("effect/Cause").YieldableError>;
@@ -799,7 +799,7 @@ declare const TomlModificationError_base: Schema.Class<TomlModificationError, Sc
799
799
  *
800
800
  * @public
801
801
  */
802
- declare class TomlModificationError extends TomlModificationError_base {
802
+ export declare class TomlModificationError extends TomlModificationError_base {
803
803
  get message(): string;
804
804
  }
805
805
  /**
@@ -816,7 +816,7 @@ declare class TomlModificationError extends TomlModificationError_base {
816
816
  *
817
817
  * @public
818
818
  */
819
- declare class TomlFormat {
819
+ export declare class TomlFormat {
820
820
  private constructor();
821
821
  /**
822
822
  * Compute conservative formatting edits: one space around `=`, leading
@@ -867,7 +867,7 @@ declare class TomlFormat {
867
867
  *
868
868
  * @public
869
869
  */
870
- type TomlVisitorEvent = Data.TaggedEnum<{
870
+ export type TomlVisitorEvent = Data.TaggedEnum<{
871
871
  TableStart: {
872
872
  readonly path: ReadonlyArray<string>;
873
873
  };
@@ -890,7 +890,7 @@ type TomlVisitorEvent = Data.TaggedEnum<{
890
890
  *
891
891
  * @public
892
892
  */
893
- declare const TomlVisitorEvent: {
893
+ export declare const TomlVisitorEvent: {
894
894
  readonly $is: <Tag extends "ArrayTableStart" | "Comment" | "KeyValue" | "TableStart">(tag: Tag) => (u: unknown) => u is Extract<{
895
895
  readonly _tag: "ArrayTableStart";
896
896
  readonly path: ReadonlyArray<string>;
@@ -1014,7 +1014,7 @@ declare const TomlVisitorEvent: {
1014
1014
  *
1015
1015
  * @public
1016
1016
  */
1017
- declare class TomlVisitor {
1017
+ export declare class TomlVisitor {
1018
1018
  private constructor();
1019
1019
  /**
1020
1020
  * Create a `Stream` of `TomlVisitorEvent` from TOML text, in document
@@ -1031,5 +1031,5 @@ declare class TomlVisitor {
1031
1031
  static visit(text: string): Stream.Stream<TomlVisitorEvent, TomlParseError>;
1032
1032
  }
1033
1033
  //#endregion
1034
- export { Toml, TomlArray, TomlArrayTableHeader, TomlBoolean, type TomlBoundCodec, TomlDateTimeLiteral, TomlDiagnostic, TomlDocument, TomlEdit, TomlErrorCode, TomlExpression, TomlFloat, TomlFormat, TomlFormattingOptions, TomlInlineEntry, TomlInlineTable, TomlInteger, TomlKey, TomlKeyKind, TomlKeyValue, TomlLexErrorCode, TomlLocalDate, TomlLocalDateTime, TomlLocalTime, TomlModificationError, TomlOffsetDateTime, TomlParseError, TomlParseErrorCode, type TomlPath, TomlRange, type TomlRangeLike, type TomlSegment, TomlSemanticErrorCode, TomlString, TomlStringStyle, TomlStringifyError, TomlStringifyErrorCode, TomlStringifyOptions, TomlTableHeader, TomlTrivia, TomlValueNode, TomlVisitor, TomlVisitorEvent };
1034
+ export type { TomlBoundCodec, TomlPath, TomlRangeLike, TomlSegment };
1035
1035
  //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effected/toml",
3
- "version": "0.5.0",
3
+ "version": "0.7.0",
4
4
  "private": false,
5
5
  "description": "TOML 1.1.0 parsing, editing and formatting as Effect schemas: typed diagnostics, a lossless CST and first-class date-time values.",
6
6
  "keywords": [
@@ -38,7 +38,7 @@
38
38
  "./package.json": "./package.json"
39
39
  },
40
40
  "peerDependencies": {
41
- "effect": "4.0.0-rc.109"
41
+ "effect": "4.0.0-rc.115"
42
42
  },
43
43
  "engines": {
44
44
  "node": ">=24.11.0"
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.58.12"
8
+ "packageVersion": "7.59.1"
9
9
  }
10
10
  ]
11
11
  }