-
typescript: 5.1.6
type `JsonObject` not limit Object key type like symbol
```typescript
const a = {[Symbol(1)]: 1}
function test(v: JsonObject) {}
// issue
test(a) // no ts error, should t…
-
An issue I found when throwing deserialized errors is that the thrown error has no reference to this `throw` point.
I think the "correct" way to throw serialized errors would be something like:
…
-
Enforcing casing, such as:
```ts
type MyObj = {
name: IsKebabCase
}
```
When I go to create an object of type `MyObj` the `name` property will error if not in kebab case.
Utility typ…
-
@sindresorhus has changed the standards for an awesome-list, and this list needs to be changed to match. See https://github.com/sindresorhus/awesome/issues/926 for more.
## Criteria
- [x] **Has b…
-
Trying to update type-fest to 3.5.4 yields the following breakage:
![image](https://user-images.githubusercontent.com/3950300/216449839-fe5dcd48-ef91-4370-adcc-a2da8ca7e806.png)
![image](https://use…
-
Recursively replace nullable properties with undefined/optional and viceversa:
```ts
type Nullable = {
a: string;
b: number | null;
}
type Undefineable = NullToUndefined;
/*{
a: string…
Xriuk updated
3 months ago
-
Given the following example:
```
type F = SnakeCasedPropertiesDeep<
CamelCasedPropertiesDeep
>;
```
I would expect each operation to be the opposite operation of each other - resulting in …
-
https://github.com/sindresorhus/awesome/blob/main/.github%2Fworkflows%2Frepo_linter.sh
-
I was looking for a way to implement “any string that doesn’t start with a slash” with template literals, then I realized that it can be achieved with a generic `Not` type:
``` typescript
type Un…
-
Anyone know if its possible to get the Optional values of a type?
```ts
interface A {
a: string;
b?: string;
c?:string;
d: string;
}
type B = OptionalsOf;
```
so B becomes someth…