@editframe/api 0.12.0-beta.19 → 0.12.0-beta.20

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.
@@ -0,0 +1,3 @@
1
+ type Equals<X, Y> = (<T>() => T extends X ? 1 : 2) extends <T>() => T extends Y ? 1 : 2 ? true : false;
2
+ export declare const assertTypesMatch: <T, U>(value: Equals<T, U> extends true ? true : never) => Equals<T, U> extends true ? true : never;
3
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@editframe/api",
3
- "version": "0.12.0-beta.19",
3
+ "version": "0.12.0-beta.20",
4
4
  "description": "API functions for EditFrame",
5
5
  "exports": {
6
6
  ".": {
@@ -35,7 +35,7 @@
35
35
  "vite-tsconfig-paths": "^4.3.2"
36
36
  },
37
37
  "dependencies": {
38
- "@editframe/assets": "0.12.0-beta.19",
38
+ "@editframe/assets": "0.12.0-beta.20",
39
39
  "debug": "^4.3.5",
40
40
  "eventsource-parser": "^3.0.0",
41
41
  "jsonwebtoken": "^9.0.2",
@@ -0,0 +1,10 @@
1
+ // Type helper that will cause a compilation error
2
+ type Equals<X, Y> = (<T>() => T extends X ? 1 : 2) extends <T>() => T extends Y
3
+ ? 1
4
+ : 2
5
+ ? true
6
+ : false;
7
+ // Force error with const assertion
8
+ export const assertTypesMatch = <T, U>(
9
+ value: Equals<T, U> extends true ? true : never,
10
+ ) => value;