Access ionic2 API锁滑动()方法

Access ionic2 API锁滑动()方法,ionic2,Ionic2,Ionic2文档列出了特定组件的一些API方法 对于滑块组件,有一个lockSwipes()方法 虽然有些方法存在,但当我调用lockSwipes()时,我的类型脚本编译器告诉我它不存在 截至2017年2月,我使用的是最新版本的ionic2 有人说了一些关于修改typescript定义的事情,但我不知道这是否是我应该/可以自己做的事情 下面是我的packages.json { "name": "myApp", "author": "Company!", "homepage":

Ionic2文档列出了特定组件的一些API方法

对于滑块组件,有一个lockSwipes()方法

虽然有些方法存在,但当我调用lockSwipes()时,我的类型脚本编译器告诉我它不存在

截至2017年2月,我使用的是最新版本的ionic2

有人说了一些关于修改typescript定义的事情,但我不知道这是否是我应该/可以自己做的事情

下面是我的packages.json

    {
  "name": "myApp",
  "author": "Company!",
  "homepage": "http://www.website.com",
  "private": true,
  "scripts": {
    "ionic:build": "ionic-app-scripts build",
    "ionic:serve": "ionic-app-scripts serve"
  },
  "dependencies": {
    "@angular/common": "2.1.1",
    "@angular/compiler": "2.1.1",
    "@angular/compiler-cli": "2.1.1",
    "@angular/core": "2.1.1",
    "@angular/forms": "2.1.1",
    "@angular/http": "2.1.1",
    "@angular/platform-browser": "2.1.1",
    "@angular/platform-browser-dynamic": "2.1.1",
    "@angular/platform-server": "2.1.1",
    "@ionic/storage": "^1.1.6",
    "ionic-angular": "2.0.0",
    "ionic-native": "2.2.3",
    "ionicons": "3.0.0",
    "moment": "^2.17.1",
    "rxjs": "5.0.0-beta.12",
    "zone.js": "0.6.26"
  },
  "devDependencies": {
    "@ionic/app-scripts": "0.0.45",
    "typescript": "2.0.6"
  },
  "cordovaPlugins": [
    "cordova-plugin-whitelist",
    "cordova-plugin-console",
    "cordova-plugin-device",
    "cordova-plugin-statusbar",
    "cordova-plugin-splashscreen",
    "ionic-plugin-keyboard"
  ],
  "cordovaPlatforms": [],
  "description": "WCGoalsIonic: An Ionic project"
}

你能分享你的package.json文件吗?在我的问题中添加了这个文件。谢谢