@tsgonest/types 0.3.0 → 0.4.1

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/tags.js DELETED
@@ -1,32 +0,0 @@
1
- /**
2
- * @tsgonest/types — Zero-runtime branded types for type-safe validation.
3
- *
4
- * These types exist purely at compile time. They produce NO runtime code.
5
- * The tsgonest compiler reads phantom properties (`__tsgonest_*`) to generate validators.
6
- *
7
- * Every constraint supports two forms:
8
- * - Simple: Min<0> — clean, no custom error
9
- * - Extended: Min<{value: 0, error: "Must be positive"}> — with per-constraint error
10
- *
11
- * @example
12
- * import { Email, Min, Max, Trim, Coerce } from "@tsgonest/types";
13
- *
14
- * interface CreateUserDto {
15
- * email: string & Email;
16
- * name: string & Trim & Min<1> & Max<255>;
17
- * age: number & Min<0> & Max<150>;
18
- * }
19
- *
20
- * // With per-constraint errors:
21
- * interface StrictDto {
22
- * email: string & Format<{type: "email", error: "Must be a valid email"}>;
23
- * age: number & Min<{value: 0, error: "Age cannot be negative"}>;
24
- * }
25
- *
26
- * // Query params with coercion:
27
- * interface QueryDto {
28
- * page: number & Coerce;
29
- * active: boolean & Coerce;
30
- * }
31
- */
32
- export {};