Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Heitz <pascal.heitz@absa.africa>
  • Loading branch information
Pascal Heitz committed Dec 15, 2020
1 parent ea5f8c8 commit fe9895b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion wrappers/node/src/api/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { rustAPI } from '../rustlib';
import { createFFICallbackPromise, ICbRef } from '../utils/ffi-helpers';
import { ISerializedData, StateType } from './common';
import { VCXBaseWithState } from './vcx-base-with-state';
import {PtrBuffer} from "./utils";
import { PtrBuffer } from './utils';

/**
* The object of the VCX API representing a pairwise relationship with another identity owner.
Expand Down
2 changes: 1 addition & 1 deletion wrappers/node/src/api/logging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as buildStructType from 'ref-struct-di';

import { VCXInternalError } from '../errors';
import { rustAPI } from '../rustlib';
import {PtrBuffer} from "./utils";
import { PtrBuffer } from './utils';

export type LogFunction = (
level: number,
Expand Down
7 changes: 3 additions & 4 deletions wrappers/node/src/api/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ import { rustAPI } from '../rustlib';
import { createFFICallbackPromise } from '../utils/ffi-helpers';
// import { resolve } from 'url';


export interface PtrBuffer extends Buffer {
// Buffer.deref typing provided by @types/ref-napi is wrong, so we overwrite the typing/
// An issue is currently dealing with fixing it https://github.com/DefinitelyTyped/DefinitelyTyped/pull/44004#issuecomment-744497037
deref: () => PtrBuffer;
// Buffer.deref typing provided by @types/ref-napi is wrong, so we overwrite the typing/
// An issue is currently dealing with fixing it https://github.com/DefinitelyTyped/DefinitelyTyped/pull/44004#issuecomment-744497037
deref: () => PtrBuffer;
}

export async function provisionAgent(configAgent: string): Promise<string> {
Expand Down
2 changes: 1 addition & 1 deletion wrappers/node/src/api/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { rustAPI } from '../rustlib';
import { createFFICallbackPromise } from '../utils/ffi-helpers';
import { IUTXO } from './common';
import { voidPtrToUint8Array } from './connection';
import {PtrBuffer} from "./utils";
import { PtrBuffer } from './utils';

export type PaymentAddress = string;
export type PaymentAmount = number;
Expand Down
2 changes: 1 addition & 1 deletion wrappers/node/src/rustlib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ export interface IFFIEntryPoint {
}

// tslint:disable object-literal-sort-keys
export const FFIConfiguration: { [Key in keyof IFFIEntryPoint]: any } = {
export const FFIConfiguration: { [Key in keyof IFFIEntryPoint]: any } = {
vcx_init_core: [FFI_ERROR_CODE, [FFI_CONFIG_PATH]],
vcx_open_pool: [FFI_ERROR_CODE, [FFI_COMMAND_HANDLE, FFI_CALLBACK_PTR]],
vcx_open_wallet: [FFI_ERROR_CODE, [FFI_COMMAND_HANDLE, FFI_CALLBACK_PTR]],
Expand Down

0 comments on commit fe9895b

Please sign in to comment.