Skip to content

how to use the types? #210

Closed Answered by sqllyw
sqllyw asked this question in Q&A
Discussion options

You must be logged in to vote

found a way, create a file petite-vue.es.d.ts with following content:

export { createApp } from './types/app';
export { nextTick } from './types/scheduler';
export { reactive } from '@vue/reactivity';

put it in the same folder as petite-vue.es, the folder content will be like following:

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sqllyw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant