From df8c449919b7ddf6296b3fb48fdb34ae58381c52 Mon Sep 17 00:00:00 2001 From: Tim Date: Thu, 2 May 2024 14:57:14 +1200 Subject: [PATCH] ensure all type ids are annotated with `unique symbol` --- .changeset/clean-goats-cough.md | 11 ++++ packages/effect/src/FiberHandle.ts | 2 +- packages/effect/src/FiberMap.ts | 2 +- packages/effect/src/FiberSet.ts | 2 +- packages/effect/src/Option.ts | 2 +- packages/effect/src/Readable.ts | 2 +- packages/effect/src/Request.ts | 2 +- packages/effect/src/Subscribable.ts | 2 +- packages/effect/src/TestAnnotation.ts | 2 +- packages/effect/src/TestAnnotationMap.ts | 2 +- packages/effect/src/TestAnnotations.ts | 2 +- packages/effect/src/TestLive.ts | 2 +- packages/effect/src/TestSized.ts | 2 +- packages/effect/src/Utils.ts | 4 +- packages/experimental/src/Machine.ts | 6 +- .../experimental/src/Machine/Procedure.ts | 4 +- .../experimental/src/Machine/ProcedureList.ts | 2 +- packages/experimental/src/Ndjson.ts | 2 +- packages/experimental/src/Persistence.ts | 6 +- packages/experimental/src/SocketServer.ts | 2 +- packages/platform/src/Http/ClientRequest.ts | 2 +- packages/platform/src/Http/Cookies.ts | 6 +- packages/platform/src/Http/Headers.ts | 2 +- packages/platform/src/Http/ServerResponse.ts | 2 +- packages/platform/src/Socket.ts | 6 +- packages/rpc/src/Router.ts | 2 +- packages/rpc/src/Rpc.ts | 2 +- packages/schema/src/Schema.ts | 60 +++++++++---------- packages/sql-mssql/src/Procedure.ts | 2 +- packages/sql/src/Error.ts | 2 +- 30 files changed, 79 insertions(+), 68 deletions(-) create mode 100644 .changeset/clean-goats-cough.md diff --git a/.changeset/clean-goats-cough.md b/.changeset/clean-goats-cough.md new file mode 100644 index 0000000000..658d59e434 --- /dev/null +++ b/.changeset/clean-goats-cough.md @@ -0,0 +1,11 @@ +--- +"@effect/experimental": patch +"@effect/sql-mssql": patch +"@effect/platform": patch +"effect": patch +"@effect/schema": patch +"@effect/rpc": patch +"@effect/sql": patch +--- + +ensure all type ids are annotated with `unique symbol` diff --git a/packages/effect/src/FiberHandle.ts b/packages/effect/src/FiberHandle.ts index 4534f0fefe..cd4d5c23af 100644 --- a/packages/effect/src/FiberHandle.ts +++ b/packages/effect/src/FiberHandle.ts @@ -22,7 +22,7 @@ import * as Runtime from "./Runtime.js" * @since 2.0.0 * @categories type ids */ -export const TypeId = Symbol.for("effect/FiberHandle") +export const TypeId: unique symbol = Symbol.for("effect/FiberHandle") /** * @since 2.0.0 diff --git a/packages/effect/src/FiberMap.ts b/packages/effect/src/FiberMap.ts index 9ed52027d2..769a0f9d1e 100644 --- a/packages/effect/src/FiberMap.ts +++ b/packages/effect/src/FiberMap.ts @@ -24,7 +24,7 @@ import * as Runtime from "./Runtime.js" * @since 2.0.0 * @categories type ids */ -export const TypeId = Symbol.for("effect/FiberMap") +export const TypeId: unique symbol = Symbol.for("effect/FiberMap") /** * @since 2.0.0 diff --git a/packages/effect/src/FiberSet.ts b/packages/effect/src/FiberSet.ts index 7dca2844fe..9ef0e705bf 100644 --- a/packages/effect/src/FiberSet.ts +++ b/packages/effect/src/FiberSet.ts @@ -22,7 +22,7 @@ import * as Runtime from "./Runtime.js" * @since 2.0.0 * @categories type ids */ -export const TypeId = Symbol.for("effect/FiberSet") +export const TypeId: unique symbol = Symbol.for("effect/FiberSet") /** * @since 2.0.0 diff --git a/packages/effect/src/Option.ts b/packages/effect/src/Option.ts index c689d510b1..381c68fb42 100644 --- a/packages/effect/src/Option.ts +++ b/packages/effect/src/Option.ts @@ -28,7 +28,7 @@ export type Option = None | Some * @category symbols * @since 2.0.0 */ -export const TypeId = Symbol.for("effect/Option") +export const TypeId: unique symbol = Symbol.for("effect/Option") /** * @category symbols diff --git a/packages/effect/src/Readable.ts b/packages/effect/src/Readable.ts index 71ee026ad5..e2b28ef2ab 100644 --- a/packages/effect/src/Readable.ts +++ b/packages/effect/src/Readable.ts @@ -12,7 +12,7 @@ import type { NoInfer } from "./Types.js" * @since 2.0.0 * @category type ids */ -export const TypeId = Symbol.for("effect/Readable") +export const TypeId: unique symbol = Symbol.for("effect/Readable") /** * @since 2.0.0 diff --git a/packages/effect/src/Request.ts b/packages/effect/src/Request.ts index ce219bbfb2..0205549498 100644 --- a/packages/effect/src/Request.ts +++ b/packages/effect/src/Request.ts @@ -283,7 +283,7 @@ export const makeCache = ( * @since 2.0.0 * @category symbols */ -export const EntryTypeId = Symbol.for("effect/RequestBlock.Entry") +export const EntryTypeId: unique symbol = Symbol.for("effect/RequestBlock.Entry") /** * @since 2.0.0 diff --git a/packages/effect/src/Subscribable.ts b/packages/effect/src/Subscribable.ts index 4ac3fafb15..dab27ea6ba 100644 --- a/packages/effect/src/Subscribable.ts +++ b/packages/effect/src/Subscribable.ts @@ -13,7 +13,7 @@ import type { NoInfer } from "./Types.js" * @since 2.0.0 * @category type ids */ -export const TypeId = Symbol.for("effect/Subscribable") +export const TypeId: unique symbol = Symbol.for("effect/Subscribable") /** * @since 2.0.0 diff --git a/packages/effect/src/TestAnnotation.ts b/packages/effect/src/TestAnnotation.ts index 5f61573428..76be7f6623 100644 --- a/packages/effect/src/TestAnnotation.ts +++ b/packages/effect/src/TestAnnotation.ts @@ -20,7 +20,7 @@ const TestAnnotationSymbolKey = "effect/TestAnnotation" /** * @since 2.0.0 */ -export const TestAnnotationTypeId = Symbol.for(TestAnnotationSymbolKey) +export const TestAnnotationTypeId: unique symbol = Symbol.for(TestAnnotationSymbolKey) /** * @since 2.0.0 diff --git a/packages/effect/src/TestAnnotationMap.ts b/packages/effect/src/TestAnnotationMap.ts index e3402f4623..f8df38ae36 100644 --- a/packages/effect/src/TestAnnotationMap.ts +++ b/packages/effect/src/TestAnnotationMap.ts @@ -9,7 +9,7 @@ import type * as TestAnnotation from "./TestAnnotation.js" /** * @since 2.0.0 */ -export const TestAnnotationMapTypeId = Symbol.for("effect/TestAnnotationMap") +export const TestAnnotationMapTypeId: unique symbol = Symbol.for("effect/TestAnnotationMap") /** * @since 2.0.0 diff --git a/packages/effect/src/TestAnnotations.ts b/packages/effect/src/TestAnnotations.ts index f48802cdab..745ca7c107 100644 --- a/packages/effect/src/TestAnnotations.ts +++ b/packages/effect/src/TestAnnotations.ts @@ -20,7 +20,7 @@ import * as TestAnnotationMap from "./TestAnnotationMap.js" /** * @since 2.0.0 */ -export const TestAnnotationsTypeId = Symbol.for("effect/TestAnnotations") +export const TestAnnotationsTypeId: unique symbol = Symbol.for("effect/TestAnnotations") /** * @since 2.0.0 diff --git a/packages/effect/src/TestLive.ts b/packages/effect/src/TestLive.ts index 03dbf1d7f3..f9ae5e0271 100644 --- a/packages/effect/src/TestLive.ts +++ b/packages/effect/src/TestLive.ts @@ -10,7 +10,7 @@ import * as defaultServices from "./internal/defaultServices.js" /** * @since 2.0.0 */ -export const TestLiveTypeId = Symbol.for("effect/TestLive") +export const TestLiveTypeId: unique symbol = Symbol.for("effect/TestLive") /** * @since 2.0.0 diff --git a/packages/effect/src/TestSized.ts b/packages/effect/src/TestSized.ts index 97b522febf..21ab3872e6 100644 --- a/packages/effect/src/TestSized.ts +++ b/packages/effect/src/TestSized.ts @@ -9,7 +9,7 @@ import * as core from "./internal/core.js" /** * @since 2.0.0 */ -export const TestSizedTypeId = Symbol.for("effect/TestSized") +export const TestSizedTypeId: unique symbol = Symbol.for("effect/TestSized") /** * @since 2.0.0 diff --git a/packages/effect/src/Utils.ts b/packages/effect/src/Utils.ts index 8d5b1a09d8..9e372e8c67 100644 --- a/packages/effect/src/Utils.ts +++ b/packages/effect/src/Utils.ts @@ -25,7 +25,7 @@ import type * as Types from "./Types.js" * @category symbols * @since 2.0.0 */ -export const GenKindTypeId = Symbol.for("effect/Gen/GenKind") +export const GenKindTypeId: unique symbol = Symbol.for("effect/Gen/GenKind") /** * @category symbols @@ -717,7 +717,7 @@ function add64( /** * @since 3.0.6 */ -export const YieldWrapTypeId = Symbol.for("effect/Utils/YieldWrap") +export const YieldWrapTypeId: unique symbol = Symbol.for("effect/Utils/YieldWrap") /** * @since 3.0.6 diff --git a/packages/experimental/src/Machine.ts b/packages/experimental/src/Machine.ts index f660afd6e5..53f1f3642f 100644 --- a/packages/experimental/src/Machine.ts +++ b/packages/experimental/src/Machine.ts @@ -56,7 +56,7 @@ export { * @since 1.0.0 * @category type ids */ -export const TypeId = Symbol.for("@effect/experimental/Machine") +export const TypeId: unique symbol = Symbol.for("@effect/experimental/Machine") /** * @since 1.0.0 @@ -85,7 +85,7 @@ export interface Machine< * @since 1.0.0 * @category type ids */ -export const SerializableTypeId = Symbol.for("@effect/experimental/Machine/Serializable") +export const SerializableTypeId: unique symbol = Symbol.for("@effect/experimental/Machine/Serializable") /** * @since 1.0.0 @@ -124,7 +124,7 @@ export interface SerializableMachine< * @since 1.0.0 * @category type ids */ -export const ActorTypeId = Symbol.for("@effect/experimental/Machine/Actor") +export const ActorTypeId: unique symbol = Symbol.for("@effect/experimental/Machine/Actor") /** * @since 1.0.0 diff --git a/packages/experimental/src/Machine/Procedure.ts b/packages/experimental/src/Machine/Procedure.ts index 851a607e00..de4bd82617 100644 --- a/packages/experimental/src/Machine/Procedure.ts +++ b/packages/experimental/src/Machine/Procedure.ts @@ -13,7 +13,7 @@ import type { Request } from "effect/Request" * @since 1.0.0 * @category type ids */ -export const TypeId = Symbol.for("@effect/experimental/Machine/Procedure") +export const TypeId: unique symbol = Symbol.for("@effect/experimental/Machine/Procedure") /** * @since 1.0.0 @@ -57,7 +57,7 @@ export interface Procedure extends * @since 1.0.0 * @category type ids */ -export const SerializableTypeId = Symbol.for("@effect/experimental/Machine/SerializableProcedure") +export const SerializableTypeId: unique symbol = Symbol.for("@effect/experimental/Machine/SerializableProcedure") /** * @since 1.0.0 diff --git a/packages/experimental/src/Machine/ProcedureList.ts b/packages/experimental/src/Machine/ProcedureList.ts index a476504089..0194a06ed7 100644 --- a/packages/experimental/src/Machine/ProcedureList.ts +++ b/packages/experimental/src/Machine/ProcedureList.ts @@ -11,7 +11,7 @@ import * as Procedure from "./Procedure.js" * @since 1.0.0 * @category type ids */ -export const TypeId = Symbol.for("@effect/experimental/Machine/ProcedureList") +export const TypeId: unique symbol = Symbol.for("@effect/experimental/Machine/ProcedureList") /** * @since 1.0.0 diff --git a/packages/experimental/src/Ndjson.ts b/packages/experimental/src/Ndjson.ts index eedc395ac8..619eff04cb 100644 --- a/packages/experimental/src/Ndjson.ts +++ b/packages/experimental/src/Ndjson.ts @@ -14,7 +14,7 @@ import { dual, pipe } from "effect/Function" * @since 1.0.0 * @category type ids */ -export const NdjsonErrorTypeId = Symbol.for("@effect/experimental/Ndjson/NdjsonError") +export const NdjsonErrorTypeId: unique symbol = Symbol.for("@effect/experimental/Ndjson/NdjsonError") /** * @since 1.0.0 diff --git a/packages/experimental/src/Persistence.ts b/packages/experimental/src/Persistence.ts index f530eff6eb..11fbac3331 100644 --- a/packages/experimental/src/Persistence.ts +++ b/packages/experimental/src/Persistence.ts @@ -21,7 +21,7 @@ import * as TimeToLive from "./TimeToLive.js" * @since 1.0.0 * @category type ids */ -export const ErrorTypeId = Symbol.for("@effect/experimental/PersistenceError") +export const ErrorTypeId: unique symbol = Symbol.for("@effect/experimental/PersistenceError") /** * @since 1.0.0 @@ -80,7 +80,7 @@ export class PersistenceBackingError extends RefailError(ErrorTypeId, "Persisten * @since 1.0.0 * @category type ids */ -export const BackingPersistenceTypeId = Symbol.for("@effect/experimental/BackingPersistence") +export const BackingPersistenceTypeId: unique symbol = Symbol.for("@effect/experimental/BackingPersistence") /** * @since 1.0.0 @@ -127,7 +127,7 @@ export const BackingPersistence: Context.Tag Predicate.hasProper * @since 1.0.0 * @category type ids */ -export const SocketErrorTypeId = Symbol.for("@effect/platform/Socket/SocketError") +export const SocketErrorTypeId: unique symbol = Symbol.for("@effect/platform/Socket/SocketError") /** * @since 1.0.0 diff --git a/packages/rpc/src/Router.ts b/packages/rpc/src/Router.ts index 1c7fc92f09..b340390d09 100644 --- a/packages/rpc/src/Router.ts +++ b/packages/rpc/src/Router.ts @@ -22,7 +22,7 @@ import * as Rpc from "./Rpc.js" * @since 1.0.0 * @category type ids */ -export const TypeId = Symbol.for("@effect/rpc/Router") +export const TypeId: unique symbol = Symbol.for("@effect/rpc/Router") /** * @since 1.0.0 diff --git a/packages/rpc/src/Rpc.ts b/packages/rpc/src/Rpc.ts index f5d3376058..ba916adf39 100644 --- a/packages/rpc/src/Rpc.ts +++ b/packages/rpc/src/Rpc.ts @@ -25,7 +25,7 @@ import * as Internal from "./internal/rpc.js" * @since 1.0.0 * @category type ids */ -export const TypeId = Symbol.for("@effect/rpc/Rpc") +export const TypeId: unique symbol = Symbol.for("@effect/rpc/Rpc") /** * @since 1.0.0 diff --git a/packages/schema/src/Schema.ts b/packages/schema/src/Schema.ts index 42de6261ca..908a6eb7ec 100644 --- a/packages/schema/src/Schema.ts +++ b/packages/schema/src/Schema.ts @@ -795,7 +795,7 @@ export const declare: { * @category type id * @since 1.0.0 */ -export const BrandTypeId = Symbol.for("@effect/schema/TypeId/Brand") +export const BrandTypeId: unique symbol = Symbol.for("@effect/schema/TypeId/Brand") /** * @category constructors @@ -823,7 +823,7 @@ export const fromBrand = >( * @category type id * @since 1.0.0 */ -export const InstanceOfTypeId = Symbol.for("@effect/schema/TypeId/InstanceOf") +export const InstanceOfTypeId: unique symbol = Symbol.for("@effect/schema/TypeId/InstanceOf") /** * @category api interface @@ -3142,7 +3142,7 @@ export const rename: { * @category type id * @since 1.0.0 */ -export const TrimmedTypeId = Symbol.for("@effect/schema/TypeId/Trimmed") +export const TrimmedTypeId: unique symbol = Symbol.for("@effect/schema/TypeId/Trimmed") /** * Verifies that a string contains no leading or trailing whitespaces. @@ -3233,7 +3233,7 @@ export const minLength = ( * @category type id * @since 1.0.0 */ -export const PatternTypeId = Symbol.for("@effect/schema/TypeId/Pattern") +export const PatternTypeId: unique symbol = Symbol.for("@effect/schema/TypeId/Pattern") /** * @category string filters @@ -3267,7 +3267,7 @@ export const pattern = ( * @category type id * @since 1.0.0 */ -export const StartsWithTypeId = Symbol.for("@effect/schema/TypeId/StartsWith") +export const StartsWithTypeId: unique symbol = Symbol.for("@effect/schema/TypeId/StartsWith") /** * @category string filters @@ -3294,7 +3294,7 @@ export const startsWith = ( * @category type id * @since 1.0.0 */ -export const EndsWithTypeId = Symbol.for("@effect/schema/TypeId/EndsWith") +export const EndsWithTypeId: unique symbol = Symbol.for("@effect/schema/TypeId/EndsWith") /** * @category string filters @@ -3321,7 +3321,7 @@ export const endsWith = ( * @category type id * @since 1.0.0 */ -export const IncludesTypeId = Symbol.for("@effect/schema/TypeId/Includes") +export const IncludesTypeId: unique symbol = Symbol.for("@effect/schema/TypeId/Includes") /** * @category string filters @@ -3348,7 +3348,7 @@ export const includes = ( * @category type id * @since 1.0.0 */ -export const LowercasedTypeId = Symbol.for("@effect/schema/TypeId/Lowercased") +export const LowercasedTypeId: unique symbol = Symbol.for("@effect/schema/TypeId/Lowercased") /** * Verifies that a string is lowercased. @@ -3378,7 +3378,7 @@ export const Lowercased: $String = $String.pipe( * @category type id * @since 1.0.0 */ -export const UppercasedTypeId = Symbol.for("@effect/schema/TypeId/Uppercased") +export const UppercasedTypeId: unique symbol = Symbol.for("@effect/schema/TypeId/Uppercased") /** * Verifies that a string is uppercased. @@ -3612,7 +3612,7 @@ export const NonEmpty: $String = $String.pipe( * @category type id * @since 1.0.0 */ -export const UUIDTypeId = Symbol.for("@effect/schema/TypeId/UUID") +export const UUIDTypeId: unique symbol = Symbol.for("@effect/schema/TypeId/UUID") const uuidRegex = /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/i @@ -3638,7 +3638,7 @@ export const UUID: $String = $String.pipe( * @category type id * @since 1.0.0 */ -export const ULIDTypeId = Symbol.for("@effect/schema/TypeId/ULID") +export const ULIDTypeId: unique symbol = Symbol.for("@effect/schema/TypeId/ULID") const ulidRegex = /^[0-7][0-9A-HJKMNP-TV-Z]{25}$/i @@ -3665,7 +3665,7 @@ export const ULID: $String = $String.pipe( * @category type id * @since 1.0.0 */ -export const FiniteTypeId = Symbol.for("@effect/schema/TypeId/Finite") +export const FiniteTypeId: unique symbol = Symbol.for("@effect/schema/TypeId/Finite") /** * Ensures that the provided value is a finite number. @@ -3753,7 +3753,7 @@ export const greaterThanOrEqualTo = ( * @category type id * @since 1.0.0 */ -export const MultipleOfTypeId = Symbol.for("@effect/schema/TypeId/MultipleOf") +export const MultipleOfTypeId: unique symbol = Symbol.for("@effect/schema/TypeId/MultipleOf") /** * @category number filters @@ -3900,7 +3900,7 @@ export const between = ( * @category type id * @since 1.0.0 */ -export const NonNaNTypeId = Symbol.for("@effect/schema/TypeId/NonNaN") +export const NonNaNTypeId: unique symbol = Symbol.for("@effect/schema/TypeId/NonNaN") /** * @category number filters @@ -4041,7 +4041,7 @@ export const NonNegative: $Number = $Number.pipe( * @category type id * @since 1.0.0 */ -export const JsonNumberTypeId = Symbol.for("@effect/schema/TypeId/JsonNumber") +export const JsonNumberTypeId: unique symbol = Symbol.for("@effect/schema/TypeId/JsonNumber") /** * The `JsonNumber` is a schema for representing JSON numbers. It ensures that the provided value is a valid @@ -4585,7 +4585,7 @@ export const clampDuration = * @category type id * @since 1.0.0 */ -export const LessThanDurationTypeId = Symbol.for("@effect/schema/TypeId/LessThanDuration") +export const LessThanDurationTypeId: unique symbol = Symbol.for("@effect/schema/TypeId/LessThanDuration") /** * @category Duration filters @@ -4608,7 +4608,7 @@ export const lessThanDuration = ( * @category type id * @since 1.0.0 */ -export const LessThanOrEqualToDurationTypeId = Symbol.for( +export const LessThanOrEqualToDurationTypeId: unique symbol = Symbol.for( "@effect/schema/TypeId/LessThanOrEqualToDuration" ) @@ -4633,7 +4633,7 @@ export const lessThanOrEqualToDuration = ( * @category type id * @since 1.0.0 */ -export const GreaterThanDurationTypeId = Symbol.for("@effect/schema/TypeId/GreaterThanDuration") +export const GreaterThanDurationTypeId: unique symbol = Symbol.for("@effect/schema/TypeId/GreaterThanDuration") /** * @category Duration filters @@ -4656,7 +4656,7 @@ export const greaterThanDuration = ( * @category type id * @since 1.0.0 */ -export const GreaterThanOrEqualToDurationTypeId = Symbol.for( +export const GreaterThanOrEqualToDurationTypeId: unique symbol = Symbol.for( "@effect/schema/TypeId/GreaterThanOrEqualToDuration" ) @@ -4681,7 +4681,7 @@ export const greaterThanOrEqualToDuration = ( * @category type id * @since 1.0.0 */ -export const BetweenDurationTypeId = Symbol.for("@effect/schema/TypeId/BetweenDuration") +export const BetweenDurationTypeId: unique symbol = Symbol.for("@effect/schema/TypeId/BetweenDuration") /** * @category Duration filters @@ -4929,7 +4929,7 @@ export const headOrElse: { * @category type id * @since 1.0.0 */ -export const ValidDateTypeId = Symbol.for("@effect/schema/TypeId/ValidDate") +export const ValidDateTypeId: unique symbol = Symbol.for("@effect/schema/TypeId/ValidDate") /** * A filter that **excludes invalid** dates (e.g., `new Date("Invalid Date")` is rejected). @@ -5805,7 +5805,7 @@ export const BigDecimalFromNumber: BigDecimalFromNumber = transformOrFail( * @category type id * @since 1.0.0 */ -export const GreaterThanBigDecimalTypeId = Symbol.for("@effect/schema/TypeId/GreaterThanBigDecimal") +export const GreaterThanBigDecimalTypeId: unique symbol = Symbol.for("@effect/schema/TypeId/GreaterThanBigDecimal") /** * @category BigDecimal filters @@ -5828,7 +5828,7 @@ export const greaterThanBigDecimal = ( * @category type id * @since 1.0.0 */ -export const GreaterThanOrEqualToBigDecimalTypeId = Symbol.for( +export const GreaterThanOrEqualToBigDecimalTypeId: unique symbol = Symbol.for( "@effect/schema/TypeId/GreaterThanOrEqualToBigDecimal" ) @@ -5853,7 +5853,7 @@ export const greaterThanOrEqualToBigDecimal = * @category type id * @since 1.0.0 */ -export const LessThanBigDecimalTypeId = Symbol.for("@effect/schema/TypeId/LessThanBigDecimal") +export const LessThanBigDecimalTypeId: unique symbol = Symbol.for("@effect/schema/TypeId/LessThanBigDecimal") /** * @category BigDecimal filters @@ -5876,7 +5876,7 @@ export const lessThanBigDecimal = ( * @category type id * @since 1.0.0 */ -export const LessThanOrEqualToBigDecimalTypeId = Symbol.for( +export const LessThanOrEqualToBigDecimalTypeId: unique symbol = Symbol.for( "@effect/schema/TypeId/LessThanOrEqualToBigDecimal" ) @@ -5901,7 +5901,7 @@ export const lessThanOrEqualToBigDecimal = ( * @category type id * @since 1.0.0 */ -export const PositiveBigDecimalTypeId = Symbol.for( +export const PositiveBigDecimalTypeId: unique symbol = Symbol.for( "@effect/schema/TypeId/PositiveBigDecimal" ) @@ -5936,7 +5936,7 @@ export const PositiveBigDecimalFromSelf = BigDecimalFromSelf.pipe( * @category type id * @since 1.0.0 */ -export const NonNegativeBigDecimalTypeId = Symbol.for( +export const NonNegativeBigDecimalTypeId: unique symbol = Symbol.for( "@effect/schema/TypeId/NonNegativeBigDecimal" ) @@ -5971,7 +5971,7 @@ export const NonNegativeBigDecimalFromSelf = BigDecimalFromSelf.pipe( * @category type id * @since 1.0.0 */ -export const NegativeBigDecimalTypeId = Symbol.for( +export const NegativeBigDecimalTypeId: unique symbol = Symbol.for( "@effect/schema/TypeId/NegativeBigDecimal" ) @@ -6006,7 +6006,7 @@ export const NegativeBigDecimalFromSelf = BigDecimalFromSelf.pipe( * @category type id * @since 1.0.0 */ -export const NonPositiveBigDecimalTypeId = Symbol.for( +export const NonPositiveBigDecimalTypeId: unique symbol = Symbol.for( "@effect/schema/TypeId/NonPositiveBigDecimal" ) @@ -6041,7 +6041,7 @@ export const NonPositiveBigDecimalFromSelf = BigDecimalFromSelf.pipe( * @category type id * @since 1.0.0 */ -export const BetweenBigDecimalTypeId = Symbol.for("@effect/schema/TypeId/BetweenBigDecimal") +export const BetweenBigDecimalTypeId: unique symbol = Symbol.for("@effect/schema/TypeId/BetweenBigDecimal") /** * @category BigDecimal filters diff --git a/packages/sql-mssql/src/Procedure.ts b/packages/sql-mssql/src/Procedure.ts index 3e24a8f478..fd51c9946e 100644 --- a/packages/sql-mssql/src/Procedure.ts +++ b/packages/sql-mssql/src/Procedure.ts @@ -14,7 +14,7 @@ import * as Parameter from "./Parameter.js" * @category type id * @since 1.0.0 */ -export const TypeId = Symbol.for("@effect/sql-mssql/Procedure") +export const TypeId: unique symbol = Symbol.for("@effect/sql-mssql/Procedure") /** * @category type id diff --git a/packages/sql/src/Error.ts b/packages/sql/src/Error.ts index 641915c6da..1fb46123e9 100644 --- a/packages/sql/src/Error.ts +++ b/packages/sql/src/Error.ts @@ -7,7 +7,7 @@ import * as Predicate from "effect/Predicate" /** * @since 1.0.0 */ -export const SqlErrorTypeId = Symbol.for("@effect/sql/Error") +export const SqlErrorTypeId: unique symbol = Symbol.for("@effect/sql/Error") /** * @since 1.0.0