-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(build): build typescript as js module
- Loading branch information
1 parent
0a3621f
commit a45ab44
Showing
3 changed files
with
79 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
import Vue, { PropOptions, WatchOptions } from 'vue'; | ||
import Component from 'vue-class-component'; | ||
import 'reflect-metadata'; | ||
export declare type Constructor = { | ||
new (...args: any[]): any; | ||
}; | ||
/** | ||
* decorator of an inject | ||
* @param key key | ||
* @return PropertyDecorator | ||
*/ | ||
export declare function Inject(key?: string | symbol): PropertyDecorator; | ||
/** | ||
* decorator of a provide | ||
* @param key key | ||
* @return PropertyDecorator | void | ||
*/ | ||
export declare function Provide(key?: string | symbol): PropertyDecorator; | ||
/** | ||
* decorator of model | ||
* @param event event name | ||
* @return PropertyDecorator | ||
*/ | ||
export declare function Model(event?: string, options?: (PropOptions | Constructor[] | Constructor)): PropertyDecorator; | ||
/** | ||
* decorator of a prop | ||
* @param options the options for the prop | ||
* @return PropertyDecorator | void | ||
*/ | ||
export declare function Prop(options?: (PropOptions | Constructor[] | Constructor)): PropertyDecorator; | ||
/** | ||
* decorator of a watch function | ||
* @param path the path or the expression to observe | ||
* @param WatchOption | ||
* @return MethodDecorator | ||
*/ | ||
export declare function Watch(path: string, options?: WatchOptions): MethodDecorator; | ||
/** | ||
* decorator of an event-emitter function | ||
* @param event The name of the event | ||
* @return MethodDecorator | ||
*/ | ||
export declare function Emit(event?: string): MethodDecorator; | ||
/** | ||
* decorator of $off | ||
* @param event The name of the event | ||
* @param method The name of the method | ||
*/ | ||
export declare function Off(event?: string, method?: string): MethodDecorator; | ||
/** | ||
* decorator of $on | ||
* @param event The name of the event | ||
*/ | ||
export declare function On(event?: string): MethodDecorator; | ||
/** | ||
* decorator of $once | ||
* @param event The name of the event | ||
*/ | ||
export declare function Once(event?: string): MethodDecorator; | ||
/** | ||
* decorator of $nextTick | ||
* | ||
* @export | ||
* @param {string} method | ||
* @returns {MethodDecorator} | ||
*/ | ||
export declare function NextTick(method: string): MethodDecorator; | ||
export { Component, Vue }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters