Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// <reference types="react-final-form" />
- //// <reference types="./node_modules/react-final-form/dist/index.d.ts" />
- //// <reference path="./node_modules/react-final-form/dist/index.d.ts" />
- //// <amd-dependency path="./node_modules/react-final-form/dist/index.d.ts" />
- // importing resolves the types, but also turns it into a module, which in turn breaks it
- // import * as RFF from react-final-form;
- // import { FieldProps } from react-final-form;
- // export * from react-final-form;
- declare module 'react-final-form-html5-validation' {
- var Field: React.ComponentType<FieldProps>
- }
- import { Field, Abc } from 'react-final-form-html5-validation'
- // correct: Module '"react-final-form-html5-validation"' has no exported member 'Abc'
- // later in App.render() { return ( .....
- <Field />
- // Field is of type React.ComponentType<any>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement