You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The optional measure part can be used to define a new type in terms of previously defined types. Note that this composite type cannot be used with non-`number` types.
20
+
The optional measure part can be used to define a new types in terms of previously defined types. Note that this composite type cannot be used with non-`number` types.
21
21
22
22
**Examples:**
23
23
24
24
```typescript
25
-
declaretypem;
26
-
declaretypes;
27
-
declaretypea=m/s^2;
28
-
declaretypeemail;
25
+
typem extends number;
26
+
types extends number;
27
+
typea=m/s^2;
28
+
typeemail extends string;
29
29
```
30
30
31
31
Note: The caret symbol does not denote a bitwise XOR operator, but rather an exponent. In this case, `m/s^2` is equivalent to `m/s/s`.
0 commit comments