acamica / acamica/ts-dynamic-type-checker

objOf static typings

Aperta
#1 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
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.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.