acamica / acamica/ts-dynamic-type-checker
objOf static typings
Aperta
bug
- Lingua principale
- TypeScript
- Stelle
- 8
- Fork
- 2
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
In the following code:
```typescript
const objContract = objOf({
foo: str
});
objContract({
foo: 'Hello world',
bar: 9
});
```
TypeScript complains of the extra property `bar`, which is the expected behavior for the `strictObjOf` function, since that one requires no extra properties, but is not for `objOf` which admits extra properties.
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.