From df09a070aea1ed327e7c1c2aafb3ac05be23f8df Mon Sep 17 00:00:00 2001 From: l00438547 Date: Wed, 9 Mar 2022 17:24:36 +0800 Subject: [PATCH] Fix Differences Signed-off-by: liujiawei --- api/@ohos.nfc.cardEmulation.d.ts | 4 ++-- api/@ohos.nfc.controller.d.ts | 4 ++-- api/tag/nfctech.d.ts | 26 +++++++++++++------------- api/tag/tagSession.d.ts | 6 +++--- 4 files changed, 20 insertions(+), 20 deletions(-) diff --git a/api/@ohos.nfc.cardEmulation.d.ts b/api/@ohos.nfc.cardEmulation.d.ts index 505b362654..dbf97d6257 100755 --- a/api/@ohos.nfc.cardEmulation.d.ts +++ b/api/@ohos.nfc.cardEmulation.d.ts @@ -22,7 +22,7 @@ * @syscap SystemCapability.Communication.NFC.Core */ declare namespace cardEmulation { - enum Featuretype { + enum FeatureType { /** This constant is used to check whether HCE card emulation is supported. */ HCE = 0, @@ -44,7 +44,7 @@ declare namespace cardEmulation { * * @since 6 */ - function isSupported(feature: number):boolean; + function isSupported(feature: number): boolean; /** * A class for NFC host application. diff --git a/api/@ohos.nfc.controller.d.ts b/api/@ohos.nfc.controller.d.ts index 35c767cb74..c0fd42b065 100755 --- a/api/@ohos.nfc.controller.d.ts +++ b/api/@ohos.nfc.controller.d.ts @@ -110,7 +110,7 @@ declare namespace nfcController { * * @since 7 */ - function getNfcState(): boolean + function getNfcState(): NfcState } -export default nfcController; \ No newline at end of file +export default nfcController; diff --git a/api/tag/nfctech.d.ts b/api/tag/nfctech.d.ts index fbcc5f2897..782b2aa51d 100755 --- a/api/tag/nfctech.d.ts +++ b/api/tag/nfctech.d.ts @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import { TagSession } form './tagSession'; +import { TagSession } from './tagSession'; /** * Provides interfaces to control the read and write of tags that support the NFC-A technology. @@ -23,7 +23,7 @@ import { TagSession } form './tagSession'; * @since 7 * @syscap SystemCapability.Communication.NFC.Core */ -export interface NfcATag extends TagSession{ +export interface NfcATag extends TagSession { /** * Obtains the SAK of an NFC-A tag. * @@ -32,7 +32,7 @@ export interface NfcATag extends TagSession{ * * @since 7 */ - getSak():number; + getSak(): number; /** * Obtains the ATQA of an NFC-A tag. @@ -42,7 +42,7 @@ export interface NfcATag extends TagSession{ * * @since 7 */ - getAtqa():number[]; + getAtqa(): number[]; } /** @@ -54,7 +54,7 @@ export interface NfcATag extends TagSession{ * @since 7 * @syscap SystemCapability.Communication.NFC.Core */ -export interface NfcBTag extends TagSession{ +export interface NfcBTag extends TagSession { /** * Obtains the application data of a tag. * @@ -63,7 +63,7 @@ export interface NfcBTag extends TagSession{ * * @since 7 */ - getRespAppData():number[]; + getRespAppData(): number[]; /** * Obtains the protocol information of a tag. @@ -73,7 +73,7 @@ export interface NfcBTag extends TagSession{ * * @since 7 */ - getRespProtocol():number[]; + getRespProtocol(): number[]; } /** @@ -85,7 +85,7 @@ export interface NfcBTag extends TagSession{ * @since 7 * @syscap SystemCapability.Communication.NFC.Core */ -export interface NfcFTag extends TagSession{ +export interface NfcFTag extends TagSession { /** * Obtains the system code from this {@code NfcFTag} instance. * @@ -94,7 +94,7 @@ export interface NfcFTag extends TagSession{ * * @since 7 */ - getSystemCode():number[]; + getSystemCode(): number[]; /** * Obtains the PMm (consisting of the IC code and manufacturer parameters) from this {@code NfcFTag} instance. @@ -104,7 +104,7 @@ export interface NfcFTag extends TagSession{ * * @since 7 */ - getPmm():number[]; + getPmm(): number[]; } /** @@ -116,7 +116,7 @@ export interface NfcFTag extends TagSession{ * @since 7 * @syscap SystemCapability.Communication.NFC.Core */ -export interface NfcVTag extends TagSession{ +export interface NfcVTag extends TagSession { /** * Obtains the response flags from this {@code NfcVTag} instance. * @@ -125,7 +125,7 @@ export interface NfcVTag extends TagSession{ * * @since 7 */ - getResponseFlags():number; + getResponseFlags(): number; /** * Obtains the data storage format identifier (DSFID) from this {@code NfcVTag} instance. @@ -135,5 +135,5 @@ export interface NfcVTag extends TagSession{ * * @since 7 */ - getDsfId():number; + getDsfId(): number; } diff --git a/api/tag/tagSession.d.ts b/api/tag/tagSession.d.ts index c50deecbf2..a1535c50bd 100755 --- a/api/tag/tagSession.d.ts +++ b/api/tag/tagSession.d.ts @@ -13,7 +13,7 @@ * limitations under the License. */ import tag from '../ohos.nfc.tag'; -import { AsyncCallback } form './basic'; +import { AsyncCallback } from './basic'; /** * Controls tag read and write. @@ -66,7 +66,7 @@ export interface TagSession { * * @since 7 */ - isTagConnected(); boolean; + isTagConnected(): boolean; /** * Sets the timeout duration (ms) for sending data to a tag. @@ -129,4 +129,4 @@ export interface TagSession { * @since 7 */ getMaxSendLength(): number; -} \ No newline at end of file +} -- Gitee