Closed mathieudutour closed 4 years ago
A plugin can now define what options it expects (no verification yet so still unknown as the arg) so that
unknown
import { convert } from '@lona/compiler' import plugin from './plugins/js' let x = await convert('here', plugin, { framework: 'react' })
is correctly typed (eg. framework is an enum, and x is void)
framework
x
void
A plugin can now define what options it expects (no verification yet so still
unknown
as the arg) so thatis correctly typed (eg.
framework
is an enum, andx
isvoid
)