Skip to content

JakeGinnivan/TypeScriptMappedTypeIssue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mapped type issue

The scenario is creating a styleguide for react components with nice type safety.

To run

npm run build

then node dist/index.js

Expected

const rendered = Example({
    title: 'Thing!',
    propTypeDescription:{
        prop1: 'Ok'
    }
})

Should fail to compile saying prop2 has not been defined

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published