@itcase/types 1.0.3 → 1.0.4
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/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/types/common.ts +14 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [1.0.4](https://github.com/ITCase/itcase-types/compare/v1.0.3...v1.0.4) (2025-06-04)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
* add simple urls types ([3d28026](https://github.com/ITCase/itcase-types/commit/3d280261291d9f93ecb694de79ab0be5f9075d2d))
|
|
6
|
+
|
|
1
7
|
## [1.0.3](https://github.com/ITCase/itcase-types/compare/v1.0.2...v1.0.3) (2025-05-13)
|
|
2
8
|
|
|
3
9
|
### Fixes
|
package/package.json
CHANGED
package/types/common.ts
CHANGED
|
@@ -17,6 +17,18 @@ type DateIso = string
|
|
|
17
17
|
*/
|
|
18
18
|
type DateTimeIso = string
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* URL to some endpoint. E.g.: to django rest framework
|
|
22
|
+
* @format relative URL: "/rest/{...}/some/"
|
|
23
|
+
*/
|
|
24
|
+
type RelativeUrl = string
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* URL to some endpoint. E.g.: to django rest framework
|
|
28
|
+
* @format absolute URL: "https://itcase.pro/rest/{...}/some/"
|
|
29
|
+
*/
|
|
30
|
+
type AbsoluteUrl = string
|
|
31
|
+
|
|
20
32
|
/**
|
|
21
33
|
* URL to file. E.g.: in django media folder
|
|
22
34
|
* @format relative URL: "/media/uploads/{...}/file_name.png"
|
|
@@ -39,6 +51,8 @@ export type {
|
|
|
39
51
|
Id,
|
|
40
52
|
DateIso,
|
|
41
53
|
DateTimeIso,
|
|
54
|
+
RelativeUrl,
|
|
55
|
+
AbsoluteUrl,
|
|
42
56
|
ImageRelativeUrl,
|
|
43
57
|
ImageAbsoluteUrl,
|
|
44
58
|
SimpleCallback,
|