Skip to content
This repository was archived by the owner on Mar 1, 2020. It is now read-only.

Create nativescript-vue.d.ts #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions nativescript-vue.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// Typings for NativeScript-Vue

declare module 'nativescript-vue' {
// import vue.js typings
import Vue from 'vue';
import {ExtendedVue} from 'vue/types/vue'
import {ComponentOptions} from 'vue/types/options'

// creat a nativescript vue class that extends vue.js
class NativeScriptVue extends Vue {
/**
* Registers NativeScript Plugin.
* @param elementName Name of the element to use in your template
* @param resolver function to register the element
*/
static registerElement(elementName: string, resolver: (...compClass: any[]) => any): void
$isAndroid: boolean
$isIOS: boolean

/**
* Starts nativescript application.start() method
*/
$start(): void
static extend<V extends Vue = Vue>(options: ComponentOptions<V>): ExtendedVue<V, {}, {}, {}, {}>
}

export = NativeScriptVue;
}

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy