当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript basil.js.default类代码示例

本文整理汇总了TypeScript中basil.js.default的典型用法代码示例。如果您正苦于以下问题:TypeScript js.default类的具体用法?TypeScript js.default怎么用?TypeScript js.default使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了js.default类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: remove

 remove: (scan: BluetoothlePlugin.ScanParams) => {
   const scans = result.fetch();
   remove(
     scans,
     (scana: BluetoothlePlugin.ScanParams) => scana.name === scan.name
   );
   store.set(KEY, scans);
 },
开发者ID:joshuaebowling,项目名称:cordova-hw,代码行数:8,代码来源:ScanStore.ts

示例2: remove

 remove: (ch: BluetoothlePlugin.Characteristic) => {
   const chs = result.fetch();
   remove(
     chs,
     (snip: BluetoothlePlugin.Characteristic) => snip.uuid === ch.uuid
   );
   store.set(KEY, chs);
 },
开发者ID:joshuaebowling,项目名称:cordova-hw,代码行数:8,代码来源:CharacteristicStore.ts

示例3: remove

 remove: (periph: Params.peripheral) => {
   const periphs = result.fetch();
   remove(
     periphs,
     (peripha: Params.peripheral) => peripha.name === periph.name
   );
   store.set(KEY, periphs);
 },
开发者ID:joshuaebowling,项目名称:cordova-hw,代码行数:8,代码来源:PeripheralStore.ts

示例4: remove

 remove: (adv: BluetoothlePlugin.AdvertisingParamsAndroid) => {
   const advs = result.fetch();
   remove(
     advs,
     (advert: BluetoothlePlugin.AdvertisingParamsAndroid) =>
       advert.service === adv.service
   );
   store.set(KEY);
 },
开发者ID:joshuaebowling,项目名称:cordova-hw,代码行数:9,代码来源:AdvertiseStore.ts

示例5:

 update: (adv: BluetoothlePlugin.AdvertisingParamsAndroid) => {
   if (adv.uuid === "") return;
   const advs = result.fetch();
   const found = result.find(adv.uuid);
   if (!found) {
     advs.push(adv);
   } else {
     advs[result.getIndex(adv)] = adv;
   }
   store.set(KEY, advs);
 },
开发者ID:joshuaebowling,项目名称:cordova-hw,代码行数:11,代码来源:AdvertiseStore.ts

示例6:

 update: (scan: BluetoothlePlugin.ScanParams) => {
   if (scan.name === "") return;
   const scans = result.fetch();
   const found = result.find(scan.name);
   if (!found) {
     scans.push(scan);
   } else {
     const index = result.getIndex(scan);
     scans[index] = scan;
   }
   store.set(KEY, scans);
 },
开发者ID:joshuaebowling,项目名称:cordova-hw,代码行数:12,代码来源:ScanStore.ts

示例7:

 update: (svc: Params.initService) => {
   if (svc.service === "") return;
   const svcs = result.fetch();
   const found = result.find(svc.service);
   if (!found) {
     svcs.push(svc);
   } else {
     const index = result.getIndex(svc);
     svcs[index] = svc;
   }
   store.set(KEY, svcs);
 },
开发者ID:joshuaebowling,项目名称:cordova-hw,代码行数:12,代码来源:ServiceParamStore.ts

示例8:

 update: (periph: Params.peripheral) => {
   if (periph.name === "") return;
   const periphs = result.fetch();
   const found = result.find(periph.name);
   if (!found) {
     periphs.push(periph);
   } else {
     const index = result.getIndex(periph);
     periphs[index] = periph;
   }
   store.set(KEY, periphs);
 },
开发者ID:joshuaebowling,项目名称:cordova-hw,代码行数:12,代码来源:PeripheralStore.ts

示例9:

 update: (ch: BluetoothlePlugin.Characteristic) => {
   if (ch.uuid === "") return;
   const chs = result.fetch();
   const found = result.find(ch.uuid);
   console.log("found", found);
   console.log(chs);
   if (!found) {
     chs.push(ch);
   } else {
     chs[result.getIndex(ch)] = ch;
   }
   store.set(KEY, chs);
 },
开发者ID:joshuaebowling,项目名称:cordova-hw,代码行数:13,代码来源:CharacteristicStore.ts


注:本文中的basil.js.default类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。