intl-tel-input
intl-tel-input copied to clipboard
feat(vue): add typescript support
trafficstars
resolve: #1794
hi @jackocnr pls review :)
Changes:
-
Typed
input-propsandoptions -
both components types support:
import IntlTelInputWithUtils from 'intl-tel-input/vueWithUtils' import IntlTelInput from 'intl-tel-input/vue' -
exportable
SomeOptionsnot necessarily, but maybe in the future:import { type SomeOptions } from 'intl-tel-input/vue' -
use
modelValueinsteadvalueforv-model -
used vite multiple entries instead double run vite with custom configs.
TODO on future:
- use
pnpmwith worksapces, and move build data toshared packageinstead symlinks. - use better build system instead
grunte.g zx - need repo convert to monorepo (for clean installations for different frameworks, better ts support).
- think about improved logic for importing “utils”
- rename
/vueWithUtils-> kebab-case e.g/vue-with-utils