-
Sjekk i M30 FEST-dokumentasjonen om det er snakk om 1 eller to konsept.
Inspirasjon:
https://simplifier.net/HL7Norwayno-basis/2.16.578.1.12.4.1.4.4/
-
| Effect | `Opaque` | `Labeled` |
| --- |:---:|:---:|
| Preserve type name | ✅ | ✅ |
| Requires `as` | ✅ | ❌ |
```ts
declare const label: unique symbol;
export type LabelContainer = {
read…
-
Inspired by - https://stackoverflow.com/a/53955431/5039290
```ts
type IsUnion = [T] extends [UnionToIntersection] ? false : true;
```
**Use case**
Create a specific type that guarantees onl…
-
[error message.docx](https://github.com/Vladinator/wow-addon-candybuckets/files/11858624/error.message.docx)
-
Hi,
Thanks for the types. I was looking for a type-safe version of `lodash.get` with string paths, and `Get` solves my problem greatly.
Is it possible to get a compile error if the wrong path is…
-
_Issue by **[Alex Ruiz](http://jira.codehaus.org/secure/ViewProfile.jspa?name=alexruiz)** from Sun, 2 Aug 2009 23:56:23 -0500_
_Originally opened as http://jira.codehaus.org/browse/FEST-208_
---
"Sc…
-
## Proposal
Adding a utility type for discriminated unions to select specific types using discriminator value.
Example:
```typescript
export type DiscriminateUnion =
T extends Record ? T :…
-
There are two self-identity bugs that can pretty simply be fixed: [TS Playground](https://www.typescriptlang.org/play?#code/PQgEGUAsHsHcGMCGBnAps0qBOXpY7JKgHagCuxAltFcQOah6iXEAu2a8rLDrRoyRAFtUoVgE8ADq…
-
TypeScript is too loose when accepting functions:
```ts
type Fn = (a: string) => string;
const fn: Fn = () => '🥲'
// This is fine.
```
https://www.typescriptlang.org/play?#code/C4TwDgpgBAY…
-
The `ReadonlyDeep` type does more than just make types readonly, it fully makes them immutable.
There's been a bit of [discussion over at typescript-eslint about "Readonly" vs "Immutable"](https://…