Closed larssn closed 5 years ago
The index.d.ts file references a common.js file, but this file has no d.ts file, hence the type for TNSFancyAlertButton doesn't exist.
common.js
d.ts
TNSFancyAlertButton
So you can't import it in typescript: import { TNSFancyAlertButton } from 'nativescript-fancyalert' <-- error
import { TNSFancyAlertButton } from 'nativescript-fancyalert'
@larssn Thanks for reporting - this is now fixed in 2.0.1 👍
2.0.1
The index.d.ts file references a
common.js
file, but this file has nod.ts
file, hence the type forTNSFancyAlertButton
doesn't exist.So you can't import it in typescript:
import { TNSFancyAlertButton } from 'nativescript-fancyalert'
<-- error